public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: libstdc++/3658: redefinition of symbols and syntax error
@ 2001-08-23 1:06 Thomas Hiller
0 siblings, 0 replies; 5+ messages in thread
From: Thomas Hiller @ 2001-08-23 1:06 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR libstdc++/3658; it has been noted by GNATS.
From: Thomas Hiller <thomas.hiller@sap.com>
To: gcc-gnats@gcc.gnu.org
Cc:
Subject: Re: libstdc++/3658: redefinition of symbols and syntax error
Date: Thu, 23 Aug 2001 09:59:24 +0200
Hi,
I'm working on Linux. The StdAfx.h comes from porting the software...
The real problem was another:
We have a declaration of min() and max() macros in our standard include
(saptype.h).
Unfortunately some C++ standard classes have a min() method. With the
min() macro this is changed in an uncorrect way.
Declaration of min() macro:
#define min(a,b) (((a) <= (b)) ? (a) : (b))
From
/opt/gcc-20010716/include/g++-v3/ia64-unknown-linux/bits/std_limits.h:
...
template<typename _Tp> struct numeric_limits {
static const bool is_specialized = false;
static _Tp min() throw() { return static_cast<_Tp>(0); }
...
This is preprocessed to something like
...
template<typename _Tp> struct numeric_limits {
static const bool is_specialized = false;
static _Tp min throw() { return static_cast<_Tp>(0); }
...
which of course is not correct.
I mentioned it in another bug report for cpp, but this was closed as
normal behaviour.
The SUN compiler can distinguish in this case though.
Best regards,
Thomas
pme@gcc.gnu.org wrote:
> Synopsis: redefinition of symbols and syntax error
>
> State-Changed-From-To: open->feedback
> State-Changed-By: pme
> State-Changed-When: Mon Aug 20 14:39:20 2001
> State-Changed-Why:
>
> You have not included any source code; we have no way of
> reproducing the bug. You need to read the bug reporting
> instructions at http://gcc.gnu.org/bugs.html . Please do
> so, and then send another bug report as a followup to this
> one (PR 3658).
>
> Also, the mention of "StdAfx.h" in your error message makes
> me think that you are working under Windows. If this is
> the case, then you should be using the Cygwin tools.
>
> http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3658&database=gcc
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: libstdc++/3658: redefinition of symbols and syntax error
@ 2001-12-05 14:46 bkoz
0 siblings, 0 replies; 5+ messages in thread
From: bkoz @ 2001-12-05 14:46 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR libstdc++/3658; it has been noted by GNATS.
From: bkoz@gcc.gnu.org
To: gcc-bugs@gcc.gnu.org, gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org,
nobody@gcc.gnu.org, thomas.hiller@sap.com, wilhelm.nuesser@sap.com
Cc:
Subject: Re: libstdc++/3658: redefinition of symbols and syntax error
Date: 5 Dec 2001 22:35:02 -0000
Synopsis: redefinition of symbols and syntax error
State-Changed-From-To: feedback->closed
State-Changed-By: bkoz
State-Changed-When: Wed Dec 5 14:35:01 2001
State-Changed-Why:
This isn't a library bug.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=3658&database=gcc
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: libstdc++/3658: redefinition of symbols and syntax error
@ 2001-12-05 14:35 bkoz
0 siblings, 0 replies; 5+ messages in thread
From: bkoz @ 2001-12-05 14:35 UTC (permalink / raw)
To: gcc-bugs, gcc-gnats, gcc-prs, nobody, thomas.hiller, wilhelm.nuesser
Synopsis: redefinition of symbols and syntax error
State-Changed-From-To: feedback->closed
State-Changed-By: bkoz
State-Changed-When: Wed Dec 5 14:35:01 2001
State-Changed-Why:
This isn't a library bug.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=3658&database=gcc
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: libstdc++/3658: redefinition of symbols and syntax error
@ 2001-08-20 14:39 pme
0 siblings, 0 replies; 5+ messages in thread
From: pme @ 2001-08-20 14:39 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, thomas.hiller, wilhelm.nuesser
Synopsis: redefinition of symbols and syntax error
State-Changed-From-To: open->feedback
State-Changed-By: pme
State-Changed-When: Mon Aug 20 14:39:20 2001
State-Changed-Why:
You have not included any source code; we have no way of
reproducing the bug. You need to read the bug reporting
instructions at http://gcc.gnu.org/bugs.html . Please do
so, and then send another bug report as a followup to this
one (PR 3658).
Also, the mention of "StdAfx.h" in your error message makes
me think that you are working under Windows. If this is
the case, then you should be using the Cygwin tools.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3658&database=gcc
^ permalink raw reply [flat|nested] 5+ messages in thread
* libstdc++/3658: redefinition of symbols and syntax error
@ 2001-07-12 1:56 thomas.hiller
0 siblings, 0 replies; 5+ messages in thread
From: thomas.hiller @ 2001-07-12 1:56 UTC (permalink / raw)
To: gcc-gnats; +Cc: wilhelm.nuesser
>Number: 3658
>Category: libstdc++
>Synopsis: redefinition of symbols and syntax error
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jul 12 01:56:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: thomas.hiller@sap.com
>Release: gcc-3.0 (gcc-20010709)
>Organization:
>Environment:
IA64
>Description:
I get a lot of messages like the following (excerpt):
In file included from /opt/gcc-20010709/include/g++-v3/bits/locale_facets.tcc:38,
from /opt/gcc-20010709/include/g++-v3/bits/std_locale.h:41,
from /opt/gcc-20010709/include/g++-v3/bits/ostream.tcc:32,
from /opt/gcc-20010709/include/g++-v3/bits/std_ostream.h:278,
from /opt/gcc-20010709/include/g++-v3/bits/std_iostream.h:40,
from /opt/gcc-20010709/include/g++-v3/iostream:31,
from iaxxdefine.hpp:164,
from StdAfx.h:70,
from iaxxarch.cpp:8:
/opt/gcc-20010709/include/g++-v3/ia64-unknown-linux/bits/std_limits.h:67: parse error before `throw'
...
/opt/gcc-20010709/include/g++-v3/ia64-unknown-linux/bits/std_limits.h:566: `const
bool has_infinity' previously defined here
/opt/gcc-20010709/include/g++-v3/ia64-unknown-linux/bits/std_limits.h:615: redefinition
of `const bool has_quiet_NaN'
/opt/gcc-20010709/include/g++-v3/ia64-unknown-linux/bits/std_limits.h:567: `const
bool has_quiet_NaN' previously defined here
/opt/gcc-20010709/include/g++-v3/ia64-unknown-linux/bits/std_limits.h:616: redefinition
of `const bool has_signaling_NaN'
/opt/gcc-20010709/include/g++-v3/ia64-unknown-linux/bits/std_limits.h:568: `const
bool has_signaling_NaN' previously defined here
/opt/gcc-20010709/include/g++-v3/ia64-unknown-linux/bits/std_limits.h:617: syntax
error before `=' token
The last one being a syntax error.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2001-12-05 22:46 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-23 1:06 libstdc++/3658: redefinition of symbols and syntax error Thomas Hiller
-- strict thread matches above, loose matches on Subject: below --
2001-12-05 14:46 bkoz
2001-12-05 14:35 bkoz
2001-08-20 14:39 pme
2001-07-12 1:56 thomas.hiller
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).