* constexpr.c (is_sub_constant_expr): Remove unused function. * cp-tree.h (is_sub_constant_expr): Remove declaration. * except.c (check_noexcept_r): Don't consider a call to a constexpr function noexcept. * g++.dg/cpp0x/constexpr-noexcept.C: Adjust the expected result. * g++.dg/cpp0x/constexpr-noexcept3.C: Likewise. * g++.dg/cpp0x/constexpr-noexcept4.C: Likewise. * g++.dg/cpp0x/constexpr-noexcept8.C: New test. * g++.dg/cpp0x/inh-ctor32.C: Remove dg-message. * g++.dg/cpp1y/constexpr-noexcept1.C: New test. From-SVN: r270320
11 lines
259 B
C
11 lines
259 B
C
// PR c++/87603
|
|
// { dg-do compile { target c++11 } }
|
|
|
|
struct Y { };
|
|
|
|
bool operator<(Y a, Y b) { return false; }
|
|
constexpr bool operator>(Y a, Y b) { return false; }
|
|
|
|
static_assert(!noexcept(Y{} > Y{}), "");
|
|
static_assert(!noexcept(Y{} < Y{}), "");
|