[Issue 11268] Cannot use non-constant CTFE pointer in an initializer
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Oct 18 02:32:37 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11268
--- Comment #6 from Jacob Carlborg <doob at me.com> 2013-10-18 02:32:32 PDT ---
(In reply to comment #3)
> This isn't a regression. It used to compile, but it generated wrong code.
> Here's a reduced case:
> ---
> static const char [] x = "abc";
> static const char *p = x.ptr;
>
> void main()
> {
> assert(p == x.ptr);
> }
> ---
I think the original code only wanted a char* with the content "ReBarWindow32"
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