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