re PR c++/67184 (Missed optimization with C++11 final specifier)
[official-gcc.git] / gcc / testsuite / g++.dg / other / crash-9.C
blobf5c4b2af329474100f00b584f59c7ddd031dc1d3
1 // Origin: PR c++/42915
2 // { dg-do compile }
4 template <typename T>
5 class A
7   template <typename U>
8   class B
9   {
10     B foo();
11   };
13 template <typename T> template <typename U>
14 A<T>::template B<U> A<T>::B<U>::foo() {}