digitalmars.D.bugs - [Issue 1365] New: wchar/dchar in foreach causes CTFE to fail
- d-bugmail puremagic.com (26/26) Jul 23 2007 http://d.puremagic.com/issues/show_bug.cgi?id=1365
- d-bugmail puremagic.com (9/9) Sep 28 2007 http://d.puremagic.com/issues/show_bug.cgi?id=1365
http://d.puremagic.com/issues/show_bug.cgi?id=1365
Summary: wchar/dchar in foreach causes CTFE to fail
Product: D
Version: 1.019
Platform: PC
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla digitalmars.com
ReportedBy: samukha voliacable.com
Is it supposed to work? If not, the specs should be put in sync.
char[] foo()
{
char[] s = "a string";
foreach (dchar c; s)
{
}
return "";
}
void main(char[][] args)
{
static x = foo();
}
--
Jul 23 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1365
bugzilla digitalmars.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Fixed dmd 1.021 and 2.004
--
Sep 28 2007








d-bugmail puremagic.com