public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: Thomas Hiller <thomas.hiller@sap.com>
To: nobody@gcc.gnu.org
Cc: gcc-prs@gcc.gnu.org
Subject: Re: libstdc++/3658: redefinition of symbols and syntax error
Date: Thu, 23 Aug 2001 01:06:00 -0000	[thread overview]
Message-ID: <20010823080601.22386.qmail@sourceware.cygnus.com> (raw)

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
 


             reply	other threads:[~2001-08-23  1:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-23  1:06 Thomas Hiller [this message]
  -- 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010823080601.22386.qmail@sourceware.cygnus.com \
    --to=thomas.hiller@sap.com \
    --cc=gcc-prs@gcc.gnu.org \
    --cc=nobody@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).