[Bug c++/60304] Including <stdbool.h> disables -Wconversion-null in C++ 98 mode

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jan 6 20:46:00 GMT 2020


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

Jason Merrill <jason at gcc dot gnu.org> changed:

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

--- Comment #25 from Jason Merrill <jason at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #24)
> I'm still not convinced keeping the "GNU extension" (or historical baggage,
> depending on your point of view) in C++98 for hypothetical compatibility is
> useful.

stdbool.h was not part of C++98, so it even existing in C++98 mode is an
extension.  IMO we should never define the macros for C++.


More information about the Gcc-bugs mailing list