[Issue 1790] CTFE: foreach(Tuple) won't compile if Tuple contains string
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Feb 3 06:18:07 PST 2009
http://d.puremagic.com/issues/show_bug.cgi?id=1790
------- Comment #1 from clugdbug at yahoo.com.au 2009-02-03 08:18 -------
This workaround for this bug has changed. On 1.039, it now fails even if you
comment out the marked line. But it compiles if you add [] to the string.
int foo(Types...)() {
foreach(T; Types) {
;
}
return 0;
}
const int q = foo!("abc"[])(); // OK
--
More information about the Digitalmars-d-bugs
mailing list