summaryrefslogtreecommitdiffstats
path: root/gcc
diff options
context:
space:
mode:
authorbrendan <brendan@138bc75d-0d04-0410-961f-82ee72b054a4>1998-06-10 10:01:13 +0000
committerbrendan <brendan@138bc75d-0d04-0410-961f-82ee72b054a4>1998-06-10 10:01:13 +0000
commit8af6f9d5e7604c51eb73a577fd40f5a9c441e454 (patch)
treef0869c56a1de383733a41f3d9f388b1c692d7acd /gcc
parentfb817e2a7d673138574969f788b037238e71f7f4 (diff)
downloadppe42-gcc-8af6f9d5e7604c51eb73a577fd40f5a9c441e454.tar.gz
ppe42-gcc-8af6f9d5e7604c51eb73a577fd40f5a9c441e454.zip
* typeck.c (build_component_ref): Make sure FIELD has a lang_specific
piece before checking DECL_MUTABLE_P. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20406 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/typeck.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 37ebb1b2cb2..72f629adfc6 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+1998-06-10 Brendan Kehoe <brendan@cygnus.com>
+
+ * typeck.c (build_component_ref): Make sure FIELD has a lang_specific
+ piece before checking DECL_MUTABLE_P.
+
1998-06-10 John Carr <jfc@mit.edu>
* tree.c (debug_binfo): Make printf format match arguments.
diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c
index 81563983a61..b3a40785969 100644
--- a/gcc/cp/typeck.c
+++ b/gcc/cp/typeck.c
@@ -2114,7 +2114,7 @@ build_component_ref (datum, component, basetype_path, protect)
TREE_READONLY (ref) = 1;
if (TREE_THIS_VOLATILE (datum) || TREE_THIS_VOLATILE (field))
TREE_THIS_VOLATILE (ref) = 1;
- if (DECL_MUTABLE_P (field))
+ if (DECL_LANG_SPECIFIC (field) && DECL_MUTABLE_P (field))
TREE_READONLY (ref) = 0;
return ref;
OpenPOWER on IntegriCloud