OSDN Git Service

PR c++/36688
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 12 Aug 2008 08:07:57 +0000 (08:07 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 12 Aug 2008 08:07:57 +0000 (08:07 +0000)
commitf532437e7ae8174e7fcfb6886c90defb20394bfa
tree27fa7e139702c2af55d394f06a68e220c7210e1b
parentdc254a612ba302ae7d6a5c2e5770658a7307044a
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@139004 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/init/const6.C [new file with mode: 0644]