Commit af477510 by Mark Mitchell

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
parent 67935995
2005-02-22 Mark Mitchell <mark@codesourcery.com> 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 PR c++/19991
* init.c (integral_constant_value): Iterate if the value of a decl * init.c (integral_constant_value): Iterate if the value of a decl
is itself a constant. is itself a constant.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment