PR c++/68475
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 1 Apr 2016 12:10:17 +0000 (12:10 +0000)
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 1 Apr 2016 12:10:17 +0000 (12:10 +0000)
commit4c3bd1e3cabbca5928c1d091e7ce1d77d6d5c63c
treec3fa1d2d7c3ec986ecf88309c6206c316b44041a
parent313d569f6593e16320460aa2894320d12fbcfe2c
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234667 138bc75d-0d04-0410-961f-82ee72b054a4
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]