Issue 229 - Aggregate trips assert
Summary: Aggregate trips assert
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Linux
: P2 normal
Assignee: David Friedman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-27 17:43 UTC by Lars Ivar Igesund
Modified: 2015-06-09 05:15 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Lars Ivar Igesund 2006-06-27 17:43:58 UTC
I am not sure if it is entirely proper to post this here, as I have compiled GDC from svn head with DMD 0.161 support (and I'm new to this GDC game), but the code below (which works with DMD) gives the following assert:

cc1d: ../../gcc/d/d-codegen.cc:2933: virtual void AggLayout::doFields(Array*, AggregateDeclaration*): Assertion `((field_decl)->decl.mode) != VOIDmode' failed.
gdctest.d:0: internal compiler error: Aborted

class Foo{ struct Bar { } private Bar bar; }

This is as minimal as I get it, but the non-minimal case actually involved an enum, but since it was the same assert that was tripped, I didn't look further into it.
Comment 1 David Friedman 2006-06-28 20:36:28 UTC
Fixed in svn.