https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108231
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
Summary|malloc attribute vs extern |malloc attribute vs extern
|"C" in a namespace and |"C" in a namespace and
|global and using of one in |global and using of one in
|the namespace in the global |the namespace in the global
|one |one and the builtin free
Last reconfirmed| |2022-12-27
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The problem is related to that free is a builtin rather than the extern "C"
really.
-fno-builtin fixes the error too.