2 // Origin: jbrandmeyer at users dot sourceforge dot net
3 // PR c++/12573: COMPONENT_REFs must be inspected for dependness.
5 template <bool> struct S;
7 template <typename K> struct Y : K {
11 template <class T> struct Z {
12 S< (bool)(&static_cast<Y<T> *>(0)->x == 0) > // { dg-error "" }