// PR c++/50436 template struct VI {}; template struct IP { static const bool r = IP::r; // { dg-error "depth" } }; template struct V { VI::r> vi; }; struct X; struct Y { V v; // { dg-message "from here" } }; // { dg-prune-output "compilation terminated" }