* dwarf2out.c (is_symbol_die): Return true also for namespaces.
* g++.dg/debug/dwarf2-2.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112820
138bc75d-0d04-0410-961f-
82ee72b054a4
+2006-04-10 Jakub Jelinek <jakub@redhat.com>
+
+ PR debug/27057
+ * dwarf2out.c (is_symbol_die): Return true also for namespaces.
+
2006-04-09 Roger Sayle <roger@eyesopen.com>
* expr.c (store_constructor): Don't bother clearing target if
{
return (is_type_die (c)
|| (get_AT (c, DW_AT_declaration)
- && !get_AT (c, DW_AT_specification)));
+ && !get_AT (c, DW_AT_specification))
+ || c->die_tag == DW_TAG_namespace);
}
static char *
+2006-04-10 Jakub Jelinek <jakub@redhat.com>
+
+ PR debug/27057
+ * g++.dg/debug/dwarf2-2.C: New test.
+
2006-04-09 Richard Sandiford <richard@codesourcery.com>
PR rtl-optimization/27073
--- /dev/null
+// PR debug/27057
+// { dg-do compile }
+// { dg-options "-g -feliminate-dwarf2-dups" }
+
+namespace N
+{
+}
+
+struct A
+{
+ void foo ();
+};
+
+void A::foo ()
+{
+ using namespace N;
+}