www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18839] New: Crash on getMember of function masking imported

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

          Issue ID: 18839
           Summary: Crash on getMember of function masking imported
                    template function
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: default_357-line yahoo.de

bar.d:

void fun(T)();

foo.d:

module foo;
import bar : fun;

void fun() { }

// either of those lines crashes
pragma(msg, __traits(getMember, foo, "fun").stringof);
static assert(__traits(compiles, __traits(getMember, foo, "fun")));

--
May 07 2018