[Bug c++/36688] [4.3/4.4 Regression] Incorrect struct assignments with nested const initializers
jakub at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Aug 12 08:34:00 GMT 2008
------- 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
More information about the Gcc-bugs
mailing list