[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / template / crash123.C
blob20a49619c6fcf1d5fb9fc23e304c17960b2657c1
1 // PR c++/50436
3 template <bool> struct VI {};
4 template <typename T>
5 struct IP
7   static const bool r = IP<T>::r;  // { dg-error "depth" }
8 };
9 template <typename T> struct V
11   VI<IP<T>::r> vi;
13 struct X;
14 struct Y
16   V<X> v;  // { dg-message "from here" }
19 // { dg-prune-output "compilation terminated" }