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

--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Nov 19 16:34:32 2015
New Revision: 230616

URL: https://gcc.gnu.org/viewcvs?rev=230616&root=gcc&view=rev
Log:
        PR c++/67409
        * decl.c (identify_goto): Add LOC and DIAG_KIND arguments, call
        emit_diagnostic instead of permerror.
        (check_previous_goto_1): Adjust identify_goto callers, treat all
        cases but crossing initialization and entering scope of decl with
        non-trivial dtor as unconditional hard errors.
        (check_goto): Use identify_goto.  Treat all cases but crossing
        initialization and entering scope of decl with non-trivial dtor
        as unconditional hard errors.

        * g++.dg/eh/goto3.C: New test.

Added:
    branches/gcc-5-branch/gcc/testsuite/g++.dg/eh/goto3.C
Modified:
    branches/gcc-5-branch/gcc/cp/ChangeLog
    branches/gcc-5-branch/gcc/cp/decl.c
    branches/gcc-5-branch/gcc/testsuite/ChangeLog

Reply via email to