FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.dg / warn / implicit-typename1.C
blobab5587ef72ee22ebfecaeb681c3e5e87915c2399
1 // The -pedantic option must be omitted to trigger the crash.
2 // { dg-do compile }
3 // { dg-options "" }
5 // PR c++/7982: Crash warning about implicit typename.
6 // The base class refers to another typename, while the
7 // name lookup finds a template.
9 template <typename T> struct X {};
11 template <typename T> struct C {
12   typedef typename T::X X;
15 template <typename T> struct A : public C<T> {
16   typedef X<int> X; // { dg-warning "lookup|dependent base|typename" }