aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2012-06-20 03:27:07 -0400
committerJason Merrill <jason@gcc.gnu.org>2012-06-20 03:27:07 -0400
commit0a337ebd0ad0998775da685a36508ea13fb8141c (patch)
treeb66ec46bd73f470f4b95f892f215526d4adcc31c /gcc
parent6830e502a29d90b4a38499624aa4518edc0123ea (diff)
downloadgcc-0a337ebd0ad0998775da685a36508ea13fb8141c.zip
gcc-0a337ebd0ad0998775da685a36508ea13fb8141c.tar.gz
gcc-0a337ebd0ad0998775da685a36508ea13fb8141c.tar.bz2
re PR c++/52637 (ICE producing debug info for c++11 code using local class as template argument)
PR c++/52637 * g++.dg/debug/localclass1.C: New. From-SVN: r188814
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/g++.dg/debug/localclass1.C21
2 files changed, 26 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 621ee96..68406ad 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2012-06-19 Jason Merrill <jason@redhat.com>
+
+ PR c++/52637
+ * g++.dg/debug/localclass1.C: New.
+
2012-06-16 Ville Voutilainen <ville.voutilainen@gmail.com>
* g++.dg/cpp0x/override4.C: New.
diff --git a/gcc/testsuite/g++.dg/debug/localclass1.C b/gcc/testsuite/g++.dg/debug/localclass1.C
new file mode 100644
index 0000000..db36d59
--- /dev/null
+++ b/gcc/testsuite/g++.dg/debug/localclass1.C
@@ -0,0 +1,21 @@
+// PR c++/52637
+// { dg-options "-g -std=c++11" }
+
+template <typename T>
+struct C { };
+
+template <typename V>
+void f(V v) {
+ struct B {};
+ C<B> c;
+}
+
+template <typename T>
+void g(T t) {
+ struct A { } a;
+ f (a);
+}
+
+struct D {
+ void h() { g(0); }
+};