[Bug libstdc++/69782] [6 Regression] defining min() macro causes thousand of lines of error messages

manu at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Feb 12 11:12:00 GMT 2016


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

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

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

--- Comment #3 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #2)
> I assume clang does it by not having header guards in its __undef_min_max
> file, so that it can be re-included by any header and redo the #undefs.

Let's do the same, no?

> I'm almost tempted to make it #error not #warning, to teach people a lesson
> ;-)

Well, they will get an error if they use -Werror.


More information about the Gcc-bugs mailing list