public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: libstdc++/4220: min/max problem in std_limits.h
@ 2002-04-04 12:06 bkoz
0 siblings, 0 replies; 3+ messages in thread
From: bkoz @ 2002-04-04 12:06 UTC (permalink / raw)
To: bjornw, gcc-bugs, gcc-prs, nobody
Synopsis: min/max problem in std_limits.h
State-Changed-From-To: analyzed->closed
State-Changed-By: bkoz
State-Changed-When: Thu Apr 4 12:06:19 2002
State-Changed-Why:
Lacking testcase, can't reproduce. If you believe this is still in error with gcc-3.1, please refile this bug report with soruces and a proper description.
thanks,
benjamin
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4220
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: libstdc++/4220: min/max problem in std_limits.h
@ 2002-04-01 18:49 bkoz
0 siblings, 0 replies; 3+ messages in thread
From: bkoz @ 2002-04-01 18:49 UTC (permalink / raw)
To: bjornw, gcc-bugs, gcc-prs, nobody
Synopsis: min/max problem in std_limits.h
State-Changed-From-To: open->analyzed
State-Changed-By: bkoz
State-Changed-When: Mon Apr 1 18:49:40 2002
State-Changed-Why:
You'll have to actually submit a testcase. "Any file that includes <limits> doesn't hack it, at least
#include <limits>
compiles fine for me.......
-benjamin
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4220
^ permalink raw reply [flat|nested] 3+ messages in thread
* libstdc++/4220: min/max problem in std_limits.h
@ 2001-09-04 1:46 bjornw
0 siblings, 0 replies; 3+ messages in thread
From: bjornw @ 2001-09-04 1:46 UTC (permalink / raw)
To: gcc-gnats
>Number: 4220
>Category: libstdc++
>Synopsis: min/max problem in std_limits.h
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Sep 04 01:46:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: bjornw@planetarion.com
>Release: gcc version 3.1 20010901 (experimental)
>Organization:
>Environment:
redhat-6.2 (all pacthed up june 2001), kernel-2.4.9
>Description:
Compiling any program that includes (at some point in the include-chain) std_limits.h fails to do so because there are some conflicts with min/max.
I'm sure there is a more sane fix than the below fix but it at least make my programs compile...
>How-To-Repeat:
Compile any program that include std_limits.h
>Fix:
std_limits.h:897:
#ifdef min
#undef min
#endif
#ifdef max
#undef max
#endif
static _Tp min() throw() { return static_cast<_Tp>(0); }
static _Tp max() throw() { return static_cast<_Tp>(0); }
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-04-04 20:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-04 12:06 libstdc++/4220: min/max problem in std_limits.h bkoz
-- strict thread matches above, loose matches on Subject: below --
2002-04-01 18:49 bkoz
2001-09-04 1:46 bjornw
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).