[Issue 18839] New: Crash on getMember of function masking imported template function
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon May 7 12:18:21 UTC 2018
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 at puremagic.com
Reporter: default_357-line at 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")));
--
More information about the Digitalmars-d-bugs
mailing list