From: Jakub Jelinek Date: Fri, 18 Feb 2005 23:20:00 +0000 (+0100) Subject: decl.c (start_decl_1): Only check TYPE_NEEDS_CONSTRUCTING if type is not error_mark_node. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3045eb55e398978089349e21d4136415b0cc8709;p=gcc.git 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 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index ab452e996db..7dbd13b8763 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2005-01-19 Jakub Jelinek + + * decl.c (start_decl_1): Only check TYPE_NEEDS_CONSTRUCTING + if type is not error_mark_node. + 2005-01-20 Giovanni Bajo PR c++/19508 diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 4f1aa1ffb94..2f6b98f4255 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -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; }