Fix test-suite fallout of default -Wreturn-type.
[official-gcc.git] / gcc / testsuite / g++.dg / warn / pr82424.C
blob43dd5e4e3d2e24c1a7a6a6ee25e0bd8932c3d448
1 // { dg-additional-options "-Wshadow=compatible-local" }
3 // pr c++/82424 we were trying to convert between dependent types.
4 template <typename T> class a
6   struct b;
7   template <typename, typename> void c ();
8 };
9 template <typename T>
10 template <typename, typename>
11 void
12 a<T>::c ()
14   typedef typename T::b b; // Don't go looking inside the typename
15   T thing;
16   {
17     T thing; // { dg-warning "shadows a previous local" }
18   }