https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125770
Patrick Palka <ppalka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ppalka at gcc dot gnu.org
--- Comment #2 from Patrick Palka <ppalka at gcc dot gnu.org> ---
(In reply to Marek Polacek from comment #1)
> We call mark_used on builtin_pack_fn_p outside a template and it then
> complains:
>
> if (builtin_pack_fn_p (decl))
> {
> error ("use of built-in parameter pack %qD outside of a template",
> DECL_NAME (decl));
> return false;
> }
>
> I don't know that we need resolve_type_of_reflected_decl for any built-ins.
> Maybe we can skip all fndecl_built_in_p?
Yeah, I think we only need it for VAR_OR_FUNCTION_DECL_P. But also mark_used
shouldn't be emitting this error unless tf_error is set, we're calling
mark_used with complain=tf_none.