diff options
author | Jakub Jelinek <jakub@redhat.com> | 2008-08-12 10:07:57 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2008-08-12 10:07:57 +0200 |
commit | 2d7231a35cc789bc7e42835e74a3f3131bb57518 (patch) | |
tree | 27fa7e139702c2af55d394f06a68e220c7210e1b /gcc/fold-const.c | |
parent | be349cac63fd9133c01354441a25ac1558e5c9c1 (diff) | |
download | gcc-2d7231a35cc789bc7e42835e74a3f3131bb57518.zip gcc-2d7231a35cc789bc7e42835e74a3f3131bb57518.tar.gz gcc-2d7231a35cc789bc7e42835e74a3f3131bb57518.tar.bz2 |
re PR c++/36688 (Incorrect struct assignments with nested const initializers)
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.
From-SVN: r139004
Diffstat (limited to 'gcc/fold-const.c')
0 files changed, 0 insertions, 0 deletions