[Issue 3512] dchar iteration over string in CTFE fails
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Nov 11 11:30:56 PST 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3512
David Röthlisberger <david at rothlis.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |david at rothlis.net
--- Comment #2 from David Röthlisberger <david at rothlis.net> 2010-11-11 11:29:47 PST ---
I'm seeing a similar error. dmd 2.050 on OS X.
Code:
import std.string;
void main()
{
mixin("int " ~ tolower("A") ~ ";");
}
Error:
/Users/drothlis/dmd2/osx/bin/../../src/phobos/std/string.d(792): Error:
_aApplycd2 cannot be interpreted at compile time, because it has no available
source code
minimal.d(5): Error: cannot evaluate tolower("A") at compile time
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list