← Back to index
|
Original Bugzilla link
Bug 15388 – extern(C++) - typeof(null) should mangle as nullptr_t
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2015-11-29T10:07:42Z
Last change time
2018-05-09T06:08:30Z
Keywords
C++, industry
Assigned to
No Owner
Creator
Manu
Comments
Comment #0
by turkeyman — 2015-11-29T10:07:42Z
This should mangle as nullptr_t extern (C++) struct X { this(typeof(null) x) {} } ...it also crashes DMD (noted in a separate bug)
Comment #1
by turkeyman — 2016-01-03T11:45:25Z
Maybe we should also define: alias null_t = typeof(null); I wanted this for a long time before I thought of typeof(null), which worked as I expected.
Comment #2
by turkeyman — 2018-05-06T19:26:48Z
Please can we fix this! > Internal Compiler error : type `typeof(null)` can not be mapped to C++ This is just not true.
Comment #3
by github-bugzilla — 2018-05-09T06:08:29Z
Commit pushed to master at
https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/c38ae836e3ab171a0d543fb3eaf7ff94b199cee4
Fix issue 15388 - extern(C++) - typeof(null) should mangle as nullptr_t