https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108593
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|UNCONFIRMED |RESOLVED
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This is by design.
That is a function clone will inherits most of the attributes from its parent.
There are a few will not be inherited in the case of function arguments change;
e.g. nonnull .