Thread overview
[Issue 1972] New: Foreach range statement breaks CTFE
Apr 05, 2008
d-bugmail
Jun 05, 2009
Shin Fujishiro
Sep 03, 2009
Walter Bright
April 05, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1972

           Summary: Foreach range statement breaks CTFE
           Product: D
           Version: 2.012
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: samukha@voliacable.com


----
int foo()
{
    foreach (c; '0' .. '9')
    {
    }

    return 0;
}

enum x = foo();
----
Error: cannot evaluate foo() at compile time


-- 

June 05, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=1972





--- Comment #1 from Shin Fujishiro <rsinfu@gmail.com>  2009-06-05 12:24:42 PDT ---
Created an attachment (id=393)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=393)
Fix the problem (DMD 2.030)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 03, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=1972


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




--- Comment #2 from Walter Bright <bugzilla@digitalmars.com>  2009-09-03 13:33:22 PDT ---
Fixed dmd 2.032

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