This corrects an oversight, the coro.gro object is a
a compiler-generated entity and should be marked as
artificial and ignored.
gcc/cp/ChangeLog:
2020-05-04 Iain Sandoe <iain@sandoe.co.uk>
* coroutines.cc (morph_fn_to_coro): Mark the coro.gro variable
as artificial and ignored.
+2020-05-04 Iain Sandoe <iain@sandoe.co.uk>
+
+ * coroutines.cc (morph_fn_to_coro): Mark the coro.gro variable
+ as artificial and ignored.
+
2020-05-04 Nathan Sidwell <nathan@acm.org>
pt.c (process_template_parm): Don't walk the template list twice,
gro = build_lang_decl (VAR_DECL, get_identifier ("coro.gro"),
TREE_TYPE (get_ro));
DECL_CONTEXT (gro) = current_scope ();
+ DECL_ARTIFICIAL (gro) = true;
+ DECL_IGNORED_P (gro) = true;
add_decl_expr (gro);
gro_bind_vars = gro;