Skip to content
This repository has been archived by the owner on Jun 20, 2019. It is now read-only.

Commit

Permalink
Bug 121 - ICE when initializing immutable char to void
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuclaw committed Jun 14, 2014
1 parent de9bc22 commit 52d8237
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gcc/d/d-objfile.cc
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ VarDeclaration::toObjFile (int)
TypeSArray *tsa = (TypeSArray *) tb;
tsa->toDtElem (&s->Sdt, ie->exp);
}
else
else if (!init->isVoidInitializer())
s->Sdt = init->toDt();
}
else
Expand Down
6 changes: 6 additions & 0 deletions gcc/testsuite/gdc.test/runnable/gdc.d
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,12 @@ void test115()

/******************************************/

// Bug 121

immutable char C121 = void; // ICE

/******************************************/

// Bug 127

int[0] test127a; // OK
Expand Down

0 comments on commit 52d8237

Please sign in to comment.