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

--- Comment #7 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #4)
> >This should fix it:
> 
> Except it is wrong.
> builtin_decl_explicit should be only used with BUILT_IN_NORMAL class.

I wish it would say so then; it only checks BUILTIN_VALID_P.

(In reply to rsand...@gcc.gnu.org from comment #6)
> Yeah, the C++ frontend calls copy_attributes_to_builtin outside
> the BUILT_IN_NORMAL block, whereas the C frontend calls it inside.

Good catch.  Thanks for fixing it.

Reply via email to