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

           Summary: while(string) causes compiler to crash during CTFE
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Olav Lindekleiv <[email protected]> 2014-03-31 04:48:35 
PDT ---
Example: http://dpaste.dzfl.pl/31b055067ef4

This fails because the while is being checked against a string. Replace "enum"
with "string" in main, and it compiles and executes at runtime.

I also posted this to the forums, which contains the link to a longer example
(after Dustmite, but before manual cleanups):
http://forum.dlang.org/thread/[email protected]#post-qxaqnmoifiubktfuyjcw:40forum.dlang.org

It works on LDC 1.076 and DMD 2.x Git (cfb5842b49) (how old is that?),
according to Dpaste, but not on DMD 2.065 (both Dpaste and my Ubuntu 64bit).

- Olav.

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

Reply via email to