------- Comment #1 from dodji at gcc dot gnu dot org 2010-07-21 21:54 -------
I am testing this patch:
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index ce35c91..bd3a97d 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -17585,9 +17585,11 @@ scope_die_for (tree t, dw_die_ref context_die)
{
gcc_assert (debug_info_level <= DINFO_LEVEL_TERSE
|| TREE_ASM_WRITTEN (containing_scope));
-
+ scope_die = lookup_type_die (containing_scope);
+
/* If none of the current dies are suitable, we get file scope. */
- scope_die = comp_unit_die;
+ if (scope_die == NULL)
+ scope_die = comp_unit_die;
}
else
scope_die = lookup_type_die (containing_scope);
--
dodji at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2010-07-21 21:54:05
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45024