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

           Summary: ICE on Tuple in union as part of static struct member
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: simen.kja...@gmail.com


--- Comment #0 from Simen Kjaeraas <simen.kja...@gmail.com> 2010-09-30 12:52:16 
PDT ---
The below code crashes DMD with the following message:

Assertion failure: 'existing->op == TOKstructliteral' on line 2090 in file
'interpret.c'

abnormal program termination


////////////////////////////

import std.typecons;

struct bar {
    static bar b = bar( 0 );

    union {
        int[1] value;
        Tuple!( int ) fields;
    }

    this( int r ) {
        fields.expand[0] = r;
    }
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to