1 // PR c++/92062 - ODR-use ignored for static member of class template.
2 // { dg-do run { target c++11 } }
3 // { dg-additional-options "-fdelete-null-pointer-checks" }
5 template<int> struct A {
7 enum { force_instantiation =! &x}; // odr-uses A<...>::x
13 const bool A<I>::x = (g = 42, false);
15 void f(A<0>) {} // A<0> must be complete, so is instantiated