re PR c++/6255 (ICE with templatess)
PR c++/6255 * decl.c (lookup_name_real): Build a new TYPENAME_TYPE rather than modifying the old one. From-SVN: r60259
This commit is contained in:
parent
914fc8d6ca
commit
328c4f55b9
1 changed files with 7 additions and 0 deletions
7
gcc/testsuite/g++.dg/ext/typename1.C
Normal file
7
gcc/testsuite/g++.dg/ext/typename1.C
Normal file
|
@ -0,0 +1,7 @@
|
|||
// PR c++/6255
|
||||
// { dg-options "-fpermissive -w" }
|
||||
|
||||
template <class T> struct A { typedef int X; };
|
||||
template <class T> struct B { typedef A<T> Y; void f (Y::X); };
|
||||
template <class T, class T1, class T2, class T3> struct C : public B<T> { void g (Y::X); };
|
||||
template class B<int>;
|
Loading…
Add table
Reference in a new issue