aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2001-12-29 17:10:10 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2001-12-29 17:10:10 +0000
commit03c9c274624a94356dffd1cd62ff9669a8a1039a (patch)
treed6c3ce64a187a221e478142f0138060f138530c8 /gcc/expr.c
parent1bf0567179b2828650b21eced842742526039651 (diff)
downloadgcc-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