2008-12-07 Dodji Seketeli <dodji@redhat.com>
PR debug/38390
* name-lookup.c (kept_level_p): Don't forget the case of levels
having using directives.
gcc/testsuite/ChangeLog:
2008-12-07 Dodji Seketeli <dodji@redhat.com>
PR debug/38390
* g++.dg/debug/dwarf2/imported-module-2.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@142562
138bc75d-0d04-0410-961f-
82ee72b054a4
+2008-12-08 Dodji Seketeli <dodji@redhat.com>
+
+ PR debug/38390
+ * name-lookup.c (kept_level_p): Don't forget the case of levels
+ having using directives.
+
2008-12-08 Richard Henderson <rth@redhat.com>
PR 38240
return (current_binding_level->blocks != NULL_TREE
|| current_binding_level->keep
|| current_binding_level->kind == sk_cleanup
- || current_binding_level->names != NULL_TREE);
+ || current_binding_level->names != NULL_TREE
+ || current_binding_level->using_directives);
}
/* Returns the kind of the innermost scope. */
+2008-12-08 Dodji Seketeli <dodji@redhat.com>
+
+ PR debug/38390
+ * g++.dg/debug/dwarf2/imported-module-2.C: New test.
+
2008-12-08 Steve Ellcey <sje@cup.hp.com>
* g++.dg/other/packed1.C: Remove ia64-hp-hpux* XFAIL.
--- /dev/null
+// Contributed by Dodji Seketeli <dodji@redhat.com>
+// Origin: PR debug/38390
+// { dg-do compile }
+// { dg-options "-g -dA" }
+// { dg-final { scan-assembler "DW_TAG_imported" } }
+
+namespace A
+{
+ int v;
+}
+
+int
+f ()
+{
+ using namespace A;
+ return v;
+}
+