// PR c++/90880 // { dg-do compile { target c++11 } } template struct status { static const bool value = false; }; template struct status { static const bool value = true; }; struct s1{int member;}; struct s2{int _member;}; class c1{int member;}; class c2{int _member;}; void foo() { static_assert(status::value, "has member"); static_assert(!status::value, "has no member"); static_assert(!status::value, "has inaccessible member"); static_assert(!status::value, "has no member"); }