[Issue 7197] enum string doesn't work with CTFE
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jan 25 10:01:12 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7197
Geoffrey Brown <erkle64 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |erkle64 at gmail.com
--- Comment #2 from Geoffrey Brown <erkle64 at gmail.com> 2012-01-25 10:00:46 PST ---
Weird, it can be fixed by changing z to a const:
int foo(int[] x...) {
return 0;
}
template bar(y...) {
enum int bar = foo(y);
}
const int z = 1;
enum int w = bar!(z);
void main() {}
I'm unable to upgrade to 2.057 because of this bug, it works fine in 2.056.
--
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