[Issue 8511] New: Segfault with forward-referenced enum

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Aug 4 23:49:29 PDT 2012


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

           Summary: Segfault with forward-referenced enum
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: ice
          Severity: minor
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: thecybershadow at gmail.com


--- Comment #0 from Vladimir Panteleev <thecybershadow at gmail.com> 2012-08-04 23:49:24 PDT ---
--- math.d ---
real hypot() {
    enum SQRTMAX;
    SQRTMAX/2;
}
--- output ---
$ dmd math.d
math.d(2): Error: enum SQRTMAX is forward referenced
math.d(2): Error: enum SQRTMAX is forward referenced
math.d(2): Error: enum SQRTMAX is forward referenced
math.d(2): Error: enum SQRTMAX is forward referenced
math.d(2): Error: enum SQRTMAX is forward referenced
math.d(2): Error: enum SQRTMAX is forward referenced
Segmentation fault

-- 
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