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.