]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/68475 (ICE: in merge_exception_specifiers, at cp/typeck2.c:2115 with -fno...
authorNathan Sidwell <nathan@acm.org>
Fri, 1 Apr 2016 12:10:17 +0000 (12:10 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Fri, 1 Apr 2016 12:10:17 +0000 (12:10 +0000)
commitf9bf89bb6a91192cfd37c5ba9823245c5f91a133
treec3fa1d2d7c3ec986ecf88309c6206c316b44041a
parent4afdcfaa6f925047857feebc13d50a4583a75eb0
re PR c++/68475 (ICE: in merge_exception_specifiers, at cp/typeck2.c:2115 with -fno-exceptions on invalid code)

PR c++/68475
* decl.c (check_redeclaration_exception_specification): Check
regardless of -fno-exceptions.
* typeck2.c (merge_exception_specifiers): Relax assert by checking
flag_exceptions too.

* g++.dg/g++.dg/cpp0x/noexcept29.C: New.

From-SVN: r234667
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/typeck2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/noexcept29.C [new file with mode: 0644]