This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/36688] [4.3/4.4 Regression] Incorrect struct assignments with nested const initializers
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Aug 2008 08:32:52 -0000
- Subject: [Bug c++/36688] [4.3/4.4 Regression] Incorrect struct assignments with nested const initializers
- References: <bug-36688-15329@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from jakub at gcc dot gnu dot org 2008-08-12 08:32 -------
Subject: Bug 36688
Author: jakub
Date: Tue Aug 12 08:31:15 2008
New Revision: 139006
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=139006
Log:
PR c++/36688
* gimplify.c (gimplify_modify_expr_rhs): Test TREE_READONLY
on the VAR_DECL instead of TYPE_READONLY on its type.
* g++.dg/init/const6.C: New test.
Added:
branches/gcc-4_3-branch/gcc/testsuite/g++.dg/init/const6.C
Modified:
branches/gcc-4_3-branch/gcc/ChangeLog
branches/gcc-4_3-branch/gcc/gimplify.c
branches/gcc-4_3-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36688