http://d.puremagic.com/issues/show_bug.cgi?id=8234
Don <clugd...@yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |clugd...@yahoo.com.au --- Comment #1 from Don <clugd...@yahoo.com.au> 2012-06-26 23:48:13 PDT --- This is not a CTFE bug. void foo() { immutable int x = 0; auto k = *(){enum e=x;return e;}; } bug.d(4): Error: can only * a pointer, not a 'immutable(int) delegate() pure nothrow @safe' Closure inference for 'is this a delegate literal' vs 'is this a function literal' incorrectly checks enum initializers. Similar to bug 6169. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------