[Issue 19542] New: Forward reference segfault with string namespace C++ syntax

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jan 3 05:15:40 UTC 2019


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

          Issue ID: 19542
           Summary: Forward reference segfault with string namespace C++
                    syntax
           Product: D
           Version: D2
          Hardware: All
                OS: Mac OS X
            Status: NEW
          Keywords: C++
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: pro.mathias.lang at gmail.com

```
pragma(msg, func!(int).mangleof);

extern(C++, `bar`)
{
    void func(T)();
}
```

SEGV with DMD64 D Compiler v2.084.0-170-g16cf015ec
Moving `pragma` after the declaration, or using the non-string syntax does not.

--


More information about the Digitalmars-d-bugs mailing list