[Bug c++/68475] [4.9/5/6 Regression] ICE: in merge_exception_specifiers, at cp/typeck2.c:2115 with -fno-exceptions on invalid code

nathan at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Apr 1 12:11:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68475

--- Comment #3 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
Author: nathan
Date: Fri Apr  1 12:10:17 2016
New Revision: 234667

URL: https://gcc.gnu.org/viewcvs?rev=234667&root=gcc&view=rev
Log:
        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.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/noexcept29.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/cp/typeck2.c
    trunk/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list