// PR c++/67161 // { dg-do compile { target c++14 } } // { dg-additional-options "-Wno-return-type" } template struct integral_constant { static constexpr _Tp value = 0; }; template struct conditional; template struct __or_; template struct __or_<_B1, _B2> : conditional<1, _B1, _B2>::type {}; template struct __and_; template struct __not_ : integral_constant {}; template struct __is_void_helper : integral_constant {}; template struct is_void : __is_void_helper {}; template struct conditional { typedef _Iftrue type; }; template using conditional_t = typename conditional<_Cond, _Iftrue, _Iffalse>::type; template using common_type_t = int; template struct array {}; template constexpr int is_void_v = is_void<_Tp>::value; template constexpr auto make_array() -> array, common_type_t<>, _Dest>, sizeof...(_Types)> { static_assert(__or_<__not_>, __and_<>>::value, ""); // { dg-error "static assert" } throw 1; } auto d = make_array();