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
This commit is contained in:
Jason Merrill 2012-06-20 03:27:07 -04:00 committed by Jason Merrill
parent 6830e502a2
commit 0a337ebd0a
2 changed files with 26 additions and 0 deletions

View File

@ -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.

View File

@ -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); }
};