[Issue 2203] typeof(class.template.foo) crashes compiler

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Apr 18 23:46:38 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=2203





------- Comment #5 from clugdbug at yahoo.com.au  2009-04-19 01:46 -------
This is actually the same as bug 1340. The typeof() isn't necessary. The error
message should be something like: "Uninstantiated templates have no members".

Reduced test case, ultimately from bug 1340:
struct C {
    template Bar()    {}
}
void main() {
    C.Bar.foo();
}


-- 



More information about the Digitalmars-d-bugs mailing list