We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78a2091 commit a880c60Copy full SHA for a880c60
clang/test/SemaCXX/cxx2a-consteval.cpp
@@ -1342,7 +1342,9 @@ namespace GH139818{
1342
1343
struct Y {
1344
constexpr ~Y() noexcept(false) { throw "oops"; } // expected-error {{cannot use 'throw' with exceptions disabled}}
1345
- // expected-note@-1 {{subexpression not valid in a constant expression}}
+ // expected-error@-1 {{constexpr function never produces a constant expression}}
1346
+ // expected-note@-2 {{subexpression not valid in a constant expression}}
1347
+ // expected-note@-3 {{subexpression not valid in a constant expression}}
1348
constexpr operator bool() {
1349
return b;
1350
}
0 commit comments