1 // PR c++/50436 2 3 template <bool> struct VI {}; 4 template <typename T> 5 struct IP 6 { 7 static const bool r = IP<T>::r; // { dg-error "depth" } 8 }; 9 template <typename T> struct V 10 { 11 VI<IP<T>::r> vi; 12 }; 13 struct X; 14 struct Y 15 { 16 V<X> v; // { dg-message "from here" } 17 }; 18 19 // { dg-prune-output "compilation terminated" } 20