Commit e3a12f0c by Richard Stallman

(digest_init): Fix error message text.

From-SVN: r5277
parent 943cc242
...@@ -5002,16 +5002,12 @@ digest_init (type, init, require_constant, constructor_constant) ...@@ -5002,16 +5002,12 @@ digest_init (type, init, require_constant, constructor_constant)
if (code == INTEGER_TYPE || code == REAL_TYPE || code == POINTER_TYPE if (code == INTEGER_TYPE || code == REAL_TYPE || code == POINTER_TYPE
|| code == ENUMERAL_TYPE || code == COMPLEX_TYPE) || code == ENUMERAL_TYPE || code == COMPLEX_TYPE)
{ {
SAVE_SPELLING_DEPTH /* Note that convert_for_assignment calls default_conversion
({ for arrays and functions. We must not call it in the
/* Note that convert_for_assignment calls default_conversion case where inside_init is a null pointer constant. */
for arrays and functions. We must not call it in the inside_init
case where inside_init is a null pointer constant. */ = convert_for_assignment (type, init, "initialization",
inside_init NULL_TREE, NULL_TREE, 0);
= convert_for_assignment (type, init,
&initialization_message,
NULL_TREE, NULL_TREE, 0);
});
if (require_constant && ! TREE_CONSTANT (inside_init)) if (require_constant && ! TREE_CONSTANT (inside_init))
{ {
......
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