re PR debug/14718 (ICE in force_decl_die (dwarf2out.c))

PR 14718
	* dwarf2out.c (dwarf2out_imported_module_or_decl): Use
	force_type_die for CONST_DECL.

From-SVN: r81431
This commit is contained in:
Graham Stott 2004-05-03 13:13:15 +00:00 committed by Graham Stott
parent 4df9c41de5
commit 834eb1f02c
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2004-05-03 Graham Stott <graham.stott@btinternet.com>
PR 14718
* dwarf2out.c (dwarf2out_imported_module_or_decl): Use
force_type_die for CONST_DECL.
2004-05-03  Eric Botcazou <ebotcazou@libertysurf.fr>
Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>

View File

@ -12781,8 +12781,8 @@ dwarf2out_imported_module_or_decl (tree decl, tree context)
else
scope_die = force_decl_die (context);
/* For TYPE_DECL, lookup TREE_TYPE. */
if (TREE_CODE (decl) == TYPE_DECL)
/* For TYPE_DECL or CONST_DECL, lookup TREE_TYPE. */
if (TREE_CODE (decl) == TYPE_DECL || TREE_CODE (decl) == CONST_DECL)
at_import_die = force_type_die (TREE_TYPE (decl));
else
at_import_die = force_decl_die (decl);