1 // { dg-do compile } 2 // Origin: jbrandmeyer at users dot sourceforge dot net 3 // PR c++/12573: COMPONENT_REFs must be inspected for dependness. 4 5 template <bool> struct S; 6 7 template <typename K> struct Y { 8 int x; 9 }; 10 11 template <class T> struct Z { 12 S< (bool)(__offsetof__(&static_cast<Y<T>*>(0)->x) == 0) > 13 s; 14 }; 15