summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2005-02-23 06:55:07 +0000
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2005-02-23 06:55:07 +0000
commitdfb286b35f85f5bc655065aa26136a4d477f0b59 (patch)
tree9d3220e7fe0dd220b995ab5866e2f8d67ea4487a
parentf06b15bfb9acf251ef6ccdec08f6a797ff3d54ea (diff)
downloadppe42-gcc-dfb286b35f85f5bc655065aa26136a4d477f0b59.tar.gz
ppe42-gcc-dfb286b35f85f5bc655065aa26136a4d477f0b59.zip
PR c++/20073
* decl.c (start_decl_1): Don't clear TREE_READONLY. (cp_finish_decl): Likewise. (complete_vars): Call cp_apply_type_quals_to_decl. * typeck.c (cp_apply_type_quals): Avoid setting TREE_READONLY in cases where that's not valid. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95442 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/cp/ChangeLog7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 611100cf274..270d396a3e8 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,5 +1,12 @@
2005-02-22 Mark Mitchell <mark@codesourcery.com>
+ PR c++/20073
+ * decl.c (start_decl_1): Don't clear TREE_READONLY.
+ (cp_finish_decl): Likewise.
+ (complete_vars): Call cp_apply_type_quals_to_decl.
+ * typeck.c (cp_apply_type_quals): Avoid setting TREE_READONLY in
+ cases where that's not valid.
+
PR c++/19991
* init.c (integral_constant_value): Iterate if the value of a decl
is itself a constant.
OpenPOWER on IntegriCloud