This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/28338] [4.0/4.1 regression] ICE/rejects-valid with references
- From: "mmitchel at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Jul 2006 02:55:32 -0000
- Subject: [Bug c++/28338] [4.0/4.1 regression] ICE/rejects-valid with references
- References: <bug-28338-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from mmitchel at gcc dot gnu dot org 2006-07-20 02:55 -------
Subject: Bug 28338
Author: mmitchel
Date: Thu Jul 20 02:55:24 2006
New Revision: 115606
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115606
Log:
PR c++/28338
* decl.c (layout_var_decl): Don't call push_local_name here.
(initialize_artificial_var): Assert artificiality.
(cp_finish_decl): Call push_local_name here.
PR c++/28338
* g++.dg/init/ref13.C: New test.
Added:
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/init/ref13.C
Modified:
branches/gcc-4_1-branch/gcc/cp/ChangeLog
branches/gcc-4_1-branch/gcc/cp/decl.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28338