decl.c (check_previous_goto_1): When decl_jump_unsafe returns 2 emit an error instead...
authorPaolo Carlini <paolo.carlini@oracle.com>
Wed, 15 Aug 2018 08:20:21 +0000 (08:20 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 15 Aug 2018 08:20:21 +0000 (08:20 +0000)
commit0806181f233acd921de0881a65423eafc7cf8a5e
treee9baf03b96ccbbee67c1740be5d2d630bf7f2993
parent68d235936bff881b22b6f9a8ab4446c225064454
decl.c (check_previous_goto_1): When decl_jump_unsafe returns 2 emit an error instead of a permerror.

/cp
2018-08-15  Paolo Carlini  <paolo.carlini@oracle.com>

* decl.c (check_previous_goto_1): When decl_jump_unsafe returns 2
emit an error instead of a permerror.

/testsuite
2018-08-15  Paolo Carlini  <paolo.carlini@oracle.com>

* g++.dg/init/goto3.C: Adjust for error instead of permerror.

From-SVN: r263551
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/init/goto3.C