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

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Nov 19 16:18:39 2015
New Revision: 230613

URL: https://gcc.gnu.org/viewcvs?rev=230613&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:
    trunk/gcc/testsuite/g++.dg/eh/goto3.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to