gcc/cp/ChangeLog:
* pt.cc (tsubst_expr): Use gcc_unreachable, not gcc_assert.
* parser.cc (cp_parser_template_id): Likewise.
* reflect.cc (eval_template_of): Likewise.
Signed-off-by: Yang Kun <yangkun@disroot.org>
return error_mark_node;
}
else
- gcc_assert (false);
+ gcc_unreachable ();
template_id = lookup_template_function (templ, arguments);
if (TREE_CODE (template_id) == TEMPLATE_ID_EXPR)
complain);
else if (concept_check_p (function))
/* Calls to concepts should have been previously diagnosed. */
- gcc_assert (false);
+ gcc_unreachable ();
else
ret = finish_call_expr (function, &call_args,
/*disallow_virtual=*/qualified_p,
else if (VAR_OR_FUNCTION_DECL_P (r) && DECL_TEMPLATE_INFO (r))
r = DECL_TI_TEMPLATE (r);
else
- gcc_assert (false);
+ gcc_unreachable ();
gcc_assert (TREE_CODE (r) == TEMPLATE_DECL);
return get_reflection_raw (loc, r);