https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56066
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|REOPENED |RESOLVED
Component|c++ |target
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I don't think this is a bug. Rather the problem is you are linking two
different linkages and expecting it to work. in the C++ case, it is vague
linkage while in C, there is extern linkage still.
the correct thing is to use gnu_inline so it is the linkage you expect in both
langauges.