Commit 3861b613 by Richard Kenner

(finish_decl): Preserve initialializer if iterator.

From-SVN: r7829
parent be972023
...@@ -3673,7 +3673,7 @@ finish_decl (decl, init, asmspec_tree) ...@@ -3673,7 +3673,7 @@ finish_decl (decl, init, asmspec_tree)
references to it. */ references to it. */
/* This test used to include TREE_STATIC, but this won't be set /* This test used to include TREE_STATIC, but this won't be set
for function level initializers. */ for function level initializers. */
if (TREE_READONLY (decl)) if (TREE_READONLY (decl) || ITERATOR_P (decl))
{ {
preserve_initializer (); preserve_initializer ();
/* Hack? Set the permanent bit for something that is permanent, /* Hack? Set the permanent bit for something that is permanent,
......
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