Commit 3045eb55 by Jakub Jelinek Committed by Jakub Jelinek

decl.c (start_decl_1): Only check TYPE_NEEDS_CONSTRUCTING if type is not error_mark_node.

	* decl.c (start_decl_1): Only check TYPE_NEEDS_CONSTRUCTING
	if type is not error_mark_node.

From-SVN: r95241
parent 52a7e4c6
2005-01-19 Jakub Jelinek <jakub@redhat.com>
* decl.c (start_decl_1): Only check TYPE_NEEDS_CONSTRUCTING
if type is not error_mark_node.
2005-01-20 Giovanni Bajo <giovannibajo@gcc.gnu.org>
PR c++/19508
......
......@@ -3829,7 +3829,7 @@ start_decl_1 (tree decl)
so we need to be conservative and unset TREE_READONLY for types
with constructors. Otherwise aliasing code will ignore stores in
an inline constructor. */
if (TYPE_NEEDS_CONSTRUCTING (type))
if (type != error_mark_node && TYPE_NEEDS_CONSTRUCTING (type))
TREE_READONLY (decl) = 0;
}
......
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