diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2001-12-29 17:10:10 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2001-12-29 17:10:10 +0000 |
commit | 03c9c274624a94356dffd1cd62ff9669a8a1039a (patch) | |
tree | d6c3ce64a187a221e478142f0138060f138530c8 /gcc/expr.c | |
parent | 1bf0567179b2828650b21eced842742526039651 (diff) | |
download | gcc-03c9c274624a94356dffd1cd62ff9669a8a1039a.zip gcc-03c9c274624a94356dffd1cd62ff9669a8a1039a.tar.gz gcc-03c9c274624a94356dffd1cd62ff9669a8a1039a.tar.bz2 |
re PR c++/335 (gcc accepts assignment in read-only structures)
cp:
PR c++/335
* init.c (resolve_offset_ref): Copy cv qualifiers of this pointer
for non-reference fields.
* typeck.c (require_complete_type): Use resolve_offset_ref).
testsuite:
* g++.dg/other/const1.C: New test.
From-SVN: r48369
Diffstat (limited to 'gcc/expr.c')
0 files changed, 0 insertions, 0 deletions