www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15388] New: extern(C++) - typeof(null) should mangle as

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

          Issue ID: 15388
           Summary: extern(C++) - typeof(null) should mangle as nullptr_t
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: turkeyman gmail.com

This should mangle as nullptr_t

extern (C++) struct X
{
  this(typeof(null) x) {}
}

...it also crashes DMD (noted in a separate bug)

--
Nov 29 2015