This test was failing with -std=c++23 -fimplicit-constexpr (not tested by
default) due to different wording in the error message.
gcc/testsuite/ChangeLog:
* g++.dg/cpp0x/noexcept34.C: Allow more wording variation.
bool b = true;
void g () noexcept (f()) { } // { dg-error ".this. is not a constant" }
void g2 () noexcept (this->f()) { } // { dg-error ".this. is not a constant" }
- void g3 () noexcept (b) { } // { dg-error "use of .this. in a constant expression|use of parameter" }
+ void g3 () noexcept (b) { } // { dg-error "use of .this. in a constant expression|use of parameter|.this. is not a constant" }
void g4 (int i) noexcept (i) { } // { dg-error "use of parameter" }
void g5 () noexcept (A::f()) { } // { dg-error ".this. is not a constant" }
- void g6 () noexcept (foo(b)) { } // { dg-error "use of .this. in a constant expression|use of parameter" }
+ void g6 () noexcept (foo(b)) { } // { dg-error "use of .this. in a constant expression|use of parameter|.this. is not a constant" }
void g7 () noexcept (int{f()}) { } // { dg-error ".this. is not a constant" }
};