]> gcc.gnu.org Git - gcc.git/commit - gcc/cp/cp-tree.h
re PR c++/20721 (crossing of a initialization left undetected on goto)
authorMark Mitchell <mark@codesourcery.com>
Thu, 13 Oct 2005 23:59:57 +0000 (23:59 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Thu, 13 Oct 2005 23:59:57 +0000 (23:59 +0000)
commit6c06fbce5c77ffbb0be281d22780a919de4877fe
treea4da9de28c6912e3768cb698ed0a81ac34281fd1
parent02f3e085c7ba33279329aae728aaf42dc922add6
re PR c++/20721 (crossing of a initialization left undetected on goto)

PR c++/20721
* cp-tree.h (DECL_NONTRIVIALLY_INITIALIZED_P): New macro.
* decl.c (duplicate_decls): Merge it into new declarations.
(decl_jump_unsafe): Use it, rather than DECL_INITIAL.
(cp_finish_decl): Set it, when appropriate.
PR c++/20721
* g++.dg/init/goto2.C: New test.

From-SVN: r105380
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/init/goto2.C [new file with mode: 0644]
This page took 0.052757 seconds and 5 git commands to generate.