[Issue 11848] New: Crash on 'enum factorial5=(a=>a==0?1:a*__traits(parent,{})(a-1))(5); '

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Dec 30 13:56:15 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=11848

           Summary: Crash on 'enum
                    factorial5=(a=>a==0?1:a*__traits(parent,{})(a-1))(5);'
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: ice
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: timon.gehr at gmx.ch


--- Comment #0 from timon.gehr at gmx.ch 2013-12-30 13:56:13 PST ---
DMD 2.064.2 crashes with a segmentation fault when run on the following code:

enum factorial5=(a=>a==0?1:a*__traits(parent,{})(a-1))(5);

The expected behaviour is a compile error, as type deduction cannot determine
the return type.

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


More information about the Digitalmars-d-bugs mailing list