[Issue 4541] Intrinsic functions do not have pointers

2023-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4541

Dlang Bot  changed:

   What|Removed |Added

   Keywords||pull

--- Comment #12 from Dlang Bot  ---
@SixthDot created dlang/dmd pull request #15699 "fix issue 4541 - linker
failure due to AddrExp on intrinsic function" fixing this issue:

- fix issue 4541 - linker failure due to AddrExp on intrinsic function

  The expression results now in a semantic-time error,
  which is the only simple solution.

  DMD Intrinsics map to libc functions, which can give the impression
  that taking the address is possible, but more generally an intrinsic
  can also have for effect to insert platform-specific instructions,
  as seen in LLVM.

https://github.com/dlang/dmd/pull/15699

--


[Issue 4541] Intrinsic functions do not have pointers

2022-12-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4541

Iain Buclaw  changed:

   What|Removed |Added

   Priority|P2  |P3

--


[Issue 4541] Intrinsic functions do not have pointers

2017-10-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4541

Mathias Lang  changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|WORKSFORME  |---

--- Comment #11 from Mathias Lang  ---
@Walter: Did you read the comments ?

The test case nowadays is:
```
import core.math;
void main() {
real function(real) c = 
}
```

And it still fails:
```
test.o: In function `_Dmain':
test.d:(.text._Dmain[_Dmain]+0x7): undefined reference to
`_D4core4math3sinFNaNbNiNfeZe'
collect2: error: ld returned 1 exit status
Error: linker exited with status 1
```

Tested with both 2.076.1 and HEAD (51bc2fb42)

--


[Issue 4541] Intrinsic functions do not have pointers

2017-10-24 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4541

Walter Bright  changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 CC||bugzi...@digitalmars.com
 Resolution|--- |WORKSFORME

--- Comment #10 from Walter Bright  ---
It works fine when I try it with the latest.

--


[Issue 4541] Intrinsic functions do not have pointers

2017-07-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4541

Mathias Lang  changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
  Component|phobos  |dmd
 Resolution|FIXED   |---

--- Comment #9 from Mathias Lang  ---
I strongly disagree with closing this bug.

> Even though using core.math results in link failure, I do not think this is a 
> problem since that is the runtime library and who uses it should know that 
> the functions declared there are intrinsics.

Relying on user knowing of internal details is not a solution. Moreover, this
doesn't take into account generic code. If one write a template that accept a
static function via a template this argument, do you really expect this person
to handle the case of someone passing an intrinsic explicitly ?

Intrinsics shouldn't differ from regular functions.

> Anyway, this is not a phobos bug anymore and I don't think it is a druntime 
> one either. Closing as fixed.

The correct course of action would be to properly tag the bug as being within
DMD.

--


[Issue 4541] Intrinsic functions do not have pointers

2017-07-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4541

RazvanN  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||razvan.nitu1...@gmail.com
 Resolution|--- |FIXED

--- Comment #8 from RazvanN  ---
I think that this issue is no longer valid since using the std.math wrappers
results in successful compilation. Even though using core.math results in link
failure, I do not think this is a problem since that is the runtime library and
who uses it should know that the functions declared there are intrinsics.
Anyway, this is not a phobos bug anymore and I don't think it is a druntime one
either. Closing
as fixed.

--


[Issue 4541] Intrinsic functions do not have pointers

2016-06-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4541

Mathias Lang  changed:

   What|Removed |Added

 CC||b.hel...@gmail.com

--- Comment #7 from Mathias Lang  ---
*** Issue 5305 has been marked as a duplicate of this issue. ***

--


[Issue 4541] Intrinsic functions do not have pointers

2016-06-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4541

Mathias Lang  changed:

   What|Removed |Added

 CC||mathias.l...@sociomantic.co
   ||m

--- Comment #6 from Mathias Lang  ---
intrinsic have been moved to `core.math` and `std.math` nowadays (since 2.069 /
https://github.com/dlang/phobos/pull/3599 ) provide wrappers around it to
mitigate the issue.

In order to reproduce this, one can use:

import core.math;
void main() {
real function(real) c = 
}

instead of the op's code.

--


[Issue 4541] Intrinsic functions do not have pointers

2015-08-28 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4541

yebblies yebbl...@gmail.com changed:

   What|Removed |Added

 CC||yebbl...@gmail.com
   Hardware|Other   |All
 OS|Windows |All

--


[Issue 4541] Intrinsic functions do not have pointers

2015-08-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4541

hst...@quickfur.ath.cx changed:

   What|Removed |Added

 CC||hst...@quickfur.ath.cx

--- Comment #5 from hst...@quickfur.ath.cx ---
Perhaps a possible workaround is to have the compiler emit a wrapper function
when the address of an intrinsic is asked for, and return the pointer to the
wrapper?

--


[Issue 4541] Intrinsic functions do not have pointers

2015-07-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4541

Marc Schütz schue...@gmx.net changed:

   What|Removed |Added

 CC||schue...@gmx.net

--- Comment #4 from Marc Schütz schue...@gmx.net ---
Still in DMD master. See
http://forum.dlang.org/post/fyywzedmhacyyaqvg...@forum.dlang.org

--


[Issue 4541] Intrinsic functions do not have pointers

2015-06-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4541

Andrei Alexandrescu and...@erdani.com changed:

   What|Removed |Added

Version|D1  D2 |D2

--


[Issue 4541] Intrinsic functions do not have pointers

2013-02-15 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4541


Andrej Mitrovic andrej.mitrov...@gmail.com changed:

   What|Removed |Added

 CC||andrej.mitrov...@gmail.com
Version|D1  |D1  D2


--- Comment #3 from Andrej Mitrovic andrej.mitrov...@gmail.com 2013-02-15 
14:49:10 PST ---
Also a D2 bug.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 4541] Intrinsic functions do not have pointers

2011-09-19 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4541


yebblies yebbl...@gmail.com changed:

   What|Removed |Added

 CC||bearophile_h...@eml.cc


--- Comment #2 from yebblies yebbl...@gmail.com 2011-09-20 00:23:21 EST ---
*** Issue 6692 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 4541] Intrinsic functions do not have pointers

2010-09-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4541


Don clugd...@yahoo.com.au changed:

   What|Removed |Added

 CC||necrom...@gmail.com


--- Comment #1 from Don clugd...@yahoo.com.au 2010-09-20 08:44:31 PDT ---
*** Issue 4696 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---