This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/49386] #undef min/max is dependent on order if #include
- From: "chris at bubblescope dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 13 Jun 2011 07:55:39 +0000
- Subject: [Bug libstdc++/49386] #undef min/max is dependent on order if #include
- Auto-submitted: auto-generated
- References: <bug-49386-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49386
Chris Jefferson <chris at bubblescope dot net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |chris at bubblescope dot
| |net
--- Comment #1 from Chris Jefferson <chris at bubblescope dot net> 2011-06-13 07:55:33 UTC ---
max is a term defiend in the standard library. It is undefined behaviour if you
#define it to something else when you are using standard library headers. Don't
do that :)