[Issue 1586] New: DMD and GDC segfaults on incomplete code segment.
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Tue Oct 16 10:06:34 PDT 2007
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=1586
           Summary: DMD and GDC segfaults on incomplete code segment.
           Product: D
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: hoytak at cs.ubc.ca
Hello,
A typo revealed a way to make the compiler segfault.  Trying to compile the
following incomplete code segment as a complete module causes the official D
compiler (versions 1.022 and 2.005) and GDC 0.24 to segfault.
////////////
module badcode;
void myFunc()
{
   auto func = &NotHere!(1).Bar!(k);  // NotHere is not defined.
}
/////////////
Thanks!
--Hoyt
-- 
    
    
More information about the Digitalmars-d-bugs
mailing list