OSDN Git Service

PR c++/6255
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 18 Dec 2002 16:42:23 +0000 (16:42 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 18 Dec 2002 16:42:23 +0000 (16:42 +0000)
        * decl.c (lookup_name_real): Build a new TYPENAME_TYPE rather than
        modifying the old one.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@60259 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/g++.dg/ext/typename1.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.dg/ext/typename1.C b/gcc/testsuite/g++.dg/ext/typename1.C
new file mode 100644 (file)
index 0000000..1c6b838
--- /dev/null
@@ -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>;