[Bug c++/93676] [8/9/10 Regression] crash in build_value_init

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Feb 11 16:56:00 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93676

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
We hit this assert in build_value_init:

  /* The AGGR_INIT_EXPR tweaking below breaks in templates.  */
  gcc_assert (!processing_template_decl
              || (SCALAR_TYPE_P (type) || TREE_CODE (type) == ARRAY_TYPE));

because we're trying to value-initialize "struct point" in a template.


More information about the Gcc-bugs mailing list