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

Commit

Permalink
Bug #92 - ICE in runnable/testenum.d with -g
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuclaw committed Jan 12, 2014
1 parent a6464b9 commit 11fd656
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions gcc/d/ChangeLog
@@ -1,3 +1,8 @@
2014-01-12 Iain Buclaw <ibuclaw@gdcproject.org>

* d-decls.cc(EnumDeclaration::toDebug): Build TYPE_DECL only for
enumeral types.

2014-01-06 Iain Buclaw <ibuclaw@gdcproject.org>

* d-ctype.cc(TypeClass::toCtype): Don't add __monitor field for
Expand Down
4 changes: 3 additions & 1 deletion gcc/d/d-decls.cc
Expand Up @@ -795,7 +795,9 @@ EnumDeclaration::toDebug (void)
return;

tree ctype = type->toCtype();
build_type_decl (ctype, this);

if (TREE_CODE (ctype) == ENUMERAL_TYPE)
build_type_decl (ctype, this);

// The ctype is not necessarily enum, which doesn't sit well with
// rest_of_type_compilation. Can call this on structs though.
Expand Down

0 comments on commit 11fd656

Please sign in to comment.