[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / template / crash124.C
blob4931aa8e9c6df55ce8c09e0e8fcb0be89fdca55e
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>
10 struct V
12   static const bool r = IP<T>::r;
13   VI<r> vi;
15 struct X;
16 struct Y
18   V<X> v;  // { dg-message "from here" }
21 // { dg-prune-output "compilation terminated" }