Skip to content

Commit a880c60

Browse files
committed
update error messages
1 parent 78a2091 commit a880c60

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

clang/test/SemaCXX/cxx2a-consteval.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1342,7 +1342,9 @@ namespace GH139818{
13421342

13431343
struct Y {
13441344
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}}
1345+
// 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}}
13461348
constexpr operator bool() {
13471349
return b;
13481350
}

0 commit comments

Comments
 (0)