[Issue 11268] [REG 2.064beta] cannot use non-constant CTFE pointer in an initializer

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Oct 16 07:08:20 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=11268



--- Comment #1 from Don <clugdbug at yahoo.com.au> 2013-10-16 07:08:18 PDT ---
Did this actually work correctly before?

Or was it acting as macro, ie was equivalent to:
   static const char* ReBarClass = "ReBarWindow32".ptr;
?

Tests that I've done suggest that it was acting as a macro.
Obviously this should work. But is it actually a regression, or a change from
wrong-code --> rejects-valid ?

In any case it is probably just an over-zealous check in init.c :
hasNonConstPointers().

-- 
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