[Issue 4541] Intrinsic functions do not have pointers

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Oct 25 12:47:31 UTC 2017


https://issues.dlang.org/show_bug.cgi?id=4541

Mathias Lang <mathias.lang at sociomantic.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WORKSFORME                  |---

--- Comment #11 from Mathias Lang <mathias.lang at sociomantic.com> ---
@Walter: Did you read the comments ?

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

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)

--


More information about the Digitalmars-d-bugs mailing list