www.digitalmars.com         C & C++   DMDScript  

D.gnu - [Bug 225] New: ICE when mixed in non-static member declaration


            Bug ID: 225
           Summary: ICE when mixed in non-static member declaration
                    depends on other members.
           Product: GDC
           Version: 5.x
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: Normal
         Component: gdc
          Assignee: ibuclaw gdcproject.org
          Reporter: art.08.09 gmail.com

Arguably this is invalid code (depending on how one treats accessing unfinished
declarations) and should be caught by the FE. But it is not caught, and, as the
ICE happens in gdc-land, I'll report it here, JIC it's a symptom of a /real/
bug, and not only a UI issue.

   struct U {
      int a;
      mixin(`enum B { ` ~ U.tupleof[0].stringof ~ ` }`);
      mixin(`B b;`);


gdcbugicemix.d:1:0: internal compiler error: in layout_aggregate_type, at

0x7631ef layout_aggregate_type(AggregateDeclaration*, tree_node*,
0x78ad27 TypeVisitor::visit(TypeStruct*)
0x78aa1d build_ctype(Type*)
0x758252 AggregateDeclaration::toInitializer()
0x767a50 StructDeclaration::toObjFile()
0x76a9d4 Module::genobjfile(bool)
0x756600 d_parse_file()
Please submit a full bug report,

You are receiving this mail because:
You are watching all bug changes.
May 17 2016