[Bug 128] New: DMD crash with static if and anonymous classes
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Fri May  5 13:15:00 PDT 2006
    
    
  
http://d.puremagic.com/bugzilla/show_bug.cgi?id=128
           Summary: DMD crash with static if and anonymous classes
           Product: D
           Version: 0.156
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P3
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: h3r3tic at mat.uni.torun.pl
The following code causes DMD to crash without printing anything:
class Foo {}
static if (is(typeof(new class Foo{}))) {}
Also, if I'm reading it correctly, the spec says that creating an instance of
an anonymous class derived from Foo should look like "new class : Foo {}",
while DMD prefers the "new class Foo {}" syntax. Is that a compiler or
documentation bug ?
-- 
    
    
More information about the Digitalmars-d-bugs
mailing list