OSDN Git Service

PR c++/41090
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 Feb 2010 00:07:49 +0000 (00:07 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 Feb 2010 00:07:49 +0000 (00:07 +0000)
commita2ad849c848413abedcfb1ea1583e6a21601286a
tree3d22a04c84152bc16b404b618adbabcaffe23712
parent2e320254fb2521c28bbbfb3b71223240071fa0e8
PR c++/41090
* decl.c (cp_finish_decl): Add local statics to cfun->local_decls.
* optimize.c (clone_body): Remap their initializers when making base
variants.
(maybe_clone_body): Complain if multiple clones aren't safe.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156455 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/optimize.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/label13.C [new file with mode: 0644]