r230613 - in /trunk/gcc: ChangeLog cp/decl.c te...
jakub@gcc.gnu.org
jakub@gcc.gnu.org
Thu Nov 19 16:18:00 GMT 2015
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
More information about the Gcc-cvs
mailing list