// { dg-do compile } // Origin: jbrandmeyer at users dot sourceforge dot net // PR c++/12573: COMPONENT_REFs must be inspected for dependness. template struct S; template struct Y : K { int x; }; template struct Z { S< (bool)(&static_cast *>(0)->x == 0) > // { dg-error "" } s; };