goto2.C
170 Bytes
-
re PR c++/20721 (crossing of a initialization left undetected on goto) · 6c06fbce
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
Mark Mitchell committed