Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / g++.dg / template / crash13.C
blob0518666d1e56c3798aa094827baecd117f979ef9
1 // { dg-do compile }
3 // Origin: Volker Reichelt <reichelt@gcc.gnu.org>
5 // PR c++/11076: ICE for invalid access declaration containing typename.
7 template<typename, typename T=void> struct A
9     typedef A<T,T> B;
12 template <typename T> struct C
14     typedef typename A<T>::B X;
15     X::Y;                       // { dg-error "not a base type" }
18 C<void> c;                      // { dg-message "instantiated" }