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

           Summary: Struct Enums cannot be read at compile time
           Product: D
           Version: D2
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Jeroen Bollen <[email protected]> 2014-03-06 13:50:45 PST 
---
Created an attachment (id=1337)
Example Code - "dmd main.d"

When a struct enum is defined like this, it's values cannot be read at compile
time. 
        enum Point3D point = {x:1, y:1, z:1};
        int testArray[point.x][point.y][point.z]; // z Cannot be read at
compile time (will error 6 times)

Working (well, technically not working) code in attachment. Tested for both 32
bit and 64 bit on a Linux system.

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

Reply via email to