www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19187] New: __traits(compiles) segfaults on access to


          Issue ID: 19187
           Summary: __traits(compiles) segfaults on access to partially
                    undefined overload set from import
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: default_357-line yahoo.de


$ cat test1.d
import test2;

enum test = __traits(compiles, test2.foo);
$ cat test2.d
template test() { }
alias foo = test;
alias foo = NONEXISTENT;
$ dmd test1.d
Segmentation fault (core dumped)

Aug 24 2018