Commit 4c7bdca6 by Jason Merrill

(grok_reference_init): Always save the initializer of a reference.

From-SVN: r7763
parent f55c7d88
......@@ -5631,10 +5631,7 @@ grok_reference_init (decl, type, init, cleanupp)
}
}
if (TREE_SIDE_EFFECTS (init))
DECL_INITIAL (decl) = save_expr (init);
else
DECL_INITIAL (decl) = init;
DECL_INITIAL (decl) = save_expr (init);
}
else
{
......
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