diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/template32.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/template32.C | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/template32.C b/gcc/testsuite/g++.old-deja/g++.jason/template32.C new file mode 100644 index 000000000..3bbb6e8c5 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.jason/template32.C @@ -0,0 +1,10 @@ +// { dg-do assemble } +// Bug: Instantiating A<int> screws with class bindings for B + +template <class T> struct A { }; +struct B { + typedef int foo; + void f (); +}; + +void B::f () { A<int> a; foo i; } |