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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jul 8 10:49:03 PDT 2008


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

           Summary: typeof(class.template.foo) crashes compiler
           Product: D
           Version: 2.015
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: samukha at voliacable.com


The following causes the compiler to crash (both 1.031 and 2.015):

class C
{
    template Bar()
    {
    }
}

static assert(!is(typeof(C.Bar.foo))); // Should pass


-- 



More information about the Digitalmars-d-bugs mailing list