[Bug libstdc++/115885] Build errors when libstdc++ math.h included in extern "C" block

egallager at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jul 12 01:23:13 GMT 2024


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

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |egallager at gcc dot gnu.org

--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #2)
> Note doing extern "C" around includes is bad form and is even undefined
> according to the C++ standard.

Perhaps g++ could issue a warning about it, then?


More information about the Gcc-bugs mailing list