1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
// { dg-options -std=c++0x } struct booleable { bool data; constexpr explicit operator bool() { return data; } }; constexpr booleable truthy_func() { return {true}; } void funky() noexcept(truthy_func()) {} int main() { funky(); return 0; }