re PR c++/45008 (Template code not expanded properly)

PR c++/45008
	* g++.dg/abi/mangle44.C: New.

From-SVN: r162459
This commit is contained in:
Jason Merrill 2010-07-23 09:54:01 -04:00 committed by Jason Merrill
parent 5fdba8726e
commit 96f3a5d239
2 changed files with 24 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2010-07-23 Jason Merrill <jason@redhat.com>
PR c++/45008
* g++.dg/abi/mangle44.C: New.
2010-06-23 Uros Bizjak <ubizjak@gmail.com>
* gcc.target/i386/*.c: Do not require sse{,2,3,4} effective target

View file

@ -0,0 +1,19 @@
// PR c++/45008
template <typename T>
struct A
{
void fn1 () {
struct Nested {
static void fn2 () { }
};
Nested::fn2();
}
};
void fn3 () {
A<double> a;
a.fn1();
}
// { dg-final { scan-assembler-not "_ZZN1AIT_E3fn1EvEN6Nested3fn2Ev" } }