[Issue 9364] [ICE] Error: CTFE internal error painting S*

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jan 21 20:26:28 PST 2013


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


yebblies <yebblies at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |CTFE
                 CC|                            |yebblies at gmail.com
            Version|unspecified                 |D2


--- Comment #1 from yebblies <yebblies at gmail.com> 2013-01-22 15:26:27 EST ---
For some reason &S gets turned into paint S -> S* which, unsurprisingly,
doesn't work.

int foo()
{
    static struct S
    {
        int i;
    }

    S s;
    (&s).i = 5;
    return 1;
}

static assert(foo());

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