diff options
author | Mark Mitchell <mmitchel@gcc.gnu.org> | 2005-02-23 06:55:07 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2005-02-23 06:55:07 +0000 |
commit | af477510b7eeb16ad4bcce2fdfccdd59ed8b647c (patch) | |
tree | 9d3220e7fe0dd220b995ab5866e2f8d67ea4487a | |
parent | 67935995351da151a966dfcaf804293be54d9617 (diff) | |
download | gcc-af477510b7eeb16ad4bcce2fdfccdd59ed8b647c.zip gcc-af477510b7eeb16ad4bcce2fdfccdd59ed8b647c.tar.gz gcc-af477510b7eeb16ad4bcce2fdfccdd59ed8b647c.tar.bz2 |
re PR c++/20073 (ICE initializing const array)
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.
From-SVN: r95442
-rw-r--r-- | gcc/cp/ChangeLog | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 611100c..270d396 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. |