diff options
author | Jason Merrill <jason@redhat.com> | 2025-01-09 15:12:07 -0500 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2025-01-09 16:23:05 -0500 |
commit | 3cae3a80695e5aabd7353c02e179c997158eef30 (patch) | |
tree | 0c770a90435f38ddffcbecfdb05e0290b3eb4781 /gcc/c/c-parser.cc | |
parent | 424a9ac45ab1a80359b22ee30d2815fb0f2c5149 (diff) | |
download | gcc-3cae3a80695e5aabd7353c02e179c997158eef30.zip gcc-3cae3a80695e5aabd7353c02e179c997158eef30.tar.gz gcc-3cae3a80695e5aabd7353c02e179c997158eef30.tar.bz2 |
c++: be permissive about eh spec mismatch for op new
r15-3532 made us more strict about exception-specification mismatches with
the standard library, but let's still be permissive about operator new,
since previously you needed to say throw(std::bad_alloc).
gcc/cp/ChangeLog:
* decl.cc (check_redeclaration_exception_specification): Be more
lenient about ::operator new.
gcc/testsuite/ChangeLog:
* g++.dg/cpp0x/noexcept88.C: New test.
Diffstat (limited to 'gcc/c/c-parser.cc')
0 files changed, 0 insertions, 0 deletions