// { dg-do compile { target c++14 } } // PR c++/111357 - __integer_pack fails to work with values of dependent type // convertible to integers in noexcept context #include using std::integer_sequence; using std::make_integer_sequence; template void g(integer_sequence) {} template struct c1 { static constexpr int value = 1; constexpr operator int() { return value; } }; template struct R { using S = make_integer_sequence{}>; R() noexcept(noexcept(g(S()))) // { dg-bogus "argument to .__integer_pack." } {} }; int main() { R(); }