FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.dg / template / access6.C
blobcbc8000d1859d6fb3f603eddfb42d16c4cc5dbe8
1 // { dg-do compile }
2 // Origin: Detlef Vollmann <dv@vollmann.ch>
4 // PR c++/8389
5 // Access control ICE for typename during instantiation and name mangling
7 template <class> class Base {
8   protected:
9     typedef int Type;
11     
12 template <class T> struct Derived : public Base<T> {
13   typedef typename Base<T>::Type Type;
14   template <class Arg> void f(Type = Type()) {}
16     
17 template void Derived<char>::f<int> (Type);