re PR c++/41090 (Using static label reference in c++ class constructor produces wrong...
authorJason Merrill <jason@redhat.com>
Wed, 3 Feb 2010 00:07:49 +0000 (19:07 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 3 Feb 2010 00:07:49 +0000 (19:07 -0500)
commite6ca6e2a1fe9c90168499d67f31eb363168275cc
tree3d22a04c84152bc16b404b618adbabcaffe23712
parent80ec737fd0c2fe533ec39d8e707b1fbe39425bf9
re PR c++/41090 (Using static label reference in c++ class constructor produces wrong code)

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.

From-SVN: r156455
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]