aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2005-11-13 02:34:50 -0500
committerJason Merrill <jason@gcc.gnu.org>2005-11-13 02:34:50 -0500
commitd3e4cd01375171e510f11d31982b6c3d52ed1b2c (patch)
treeb01d7315da05ef072506a584a05cf979f616f66f /gcc/testsuite
parent646c38e94ef62cff1e755f6d4fe67e143d7c6739 (diff)
downloadgcc-d3e4cd01375171e510f11d31982b6c3d52ed1b2c.zip
gcc-d3e4cd01375171e510f11d31982b6c3d52ed1b2c.tar.gz
gcc-d3e4cd01375171e510f11d31982b6c3d52ed1b2c.tar.bz2
re PR c++/22489 (ICE in dwarf2out_finish with using namespace in a local class and compiler built constructors)
PR c++/22489 * dwarf2out.c (gen_subprogram_die): Force a declaration die for lazily declared methods. (force_decl_die): Stop if forcing out the context already make a DIE for the decl. (force_type_die): Likewise. From-SVN: r106853
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/g++.dg/debug/using2.C21
1 files changed, 21 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/debug/using2.C b/gcc/testsuite/g++.dg/debug/using2.C
new file mode 100644
index 0000000..94f0dea
--- /dev/null
+++ b/gcc/testsuite/g++.dg/debug/using2.C
@@ -0,0 +1,21 @@
+// PR c++/22489
+
+namespace N { }
+
+struct T
+{
+ T () { }
+};
+
+void
+bar ()
+{
+ struct U : public T
+ {
+ void baz ()
+ {
+ using namespace N;
+ }
+ } u;
+ u.baz();
+}