libstdc++: Fix unexpected compilation error in neg tests
[official-gcc.git] / gcc / testsuite / g++.dg / template / crash123.C
blob20a71cf192b1cccd1194a27581f21d90f6a6597d
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" }