www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1972] New: Foreach range statement breaks CTFE

reply d-bugmail puremagic.com writes:
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


-- 
Apr 05 2008
next sibling parent d-bugmail puremagic.com writes:
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: -------
Jun 05 2009
prev sibling parent d-bugmail puremagic.com writes:
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: -------
Sep 03 2009