[Issue 10074] New: segfault in dmd

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon May 13 05:15:51 PDT 2013


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

           Summary: segfault in dmd
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: jens.k.mueller at gmx.de


--- Comment #0 from jens.k.mueller at gmx.de 2013-05-13 05:15:50 PDT ---
The following program causes dmd (dmd2.062) to segfault on Linux.

template foo(F)                                                                 
{                                                                               
    enum foo = false;                                                           
}                                                                               

bool foo(F)(F f)                                                                
    if (foo!F)                                                                  
{                                                                               
    return false;                                                               
}                                                                               

void main()                                                                     
{                                                                               
    foo(1);                                                                     
}

$ dmd test.d
segmentation fault  dmd test.d

I expect the program to compile or abort with an error but there should be no
segfault.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list