public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: Ben Hines <bhines@alumni.ucsd.edu>
To: jason@gcc.gnu.org
Cc: gcc-prs@gcc.gnu.org,
Subject: Re: c++/7327: -isystem and template linkage
Date: Sun, 03 Nov 2002 20:26:00 -0000	[thread overview]
Message-ID: <20021104042601.28086.qmail@sources.redhat.com> (raw)

The following reply was made to PR c++/7327; it has been noted by GNATS.

From: Ben Hines <bhines@alumni.ucsd.edu>
To: gcc-gnats@gcc.gnu.org,
 gcc-prs@gcc.gnu.org,
 hoel@germanlloyd.org,
 gcc-bugs@gcc.gnu.org,
 jason@gcc.gnu.org
Cc:  
Subject: Re: c++/7327: -isystem and template linkage
Date: Sun, 3 Nov 2002 20:21:19 -0800

 This bug# 7327 also affects Apple's GCC on Mac OS X. Also, "idirafter" 
 is also affected in addition to "isystem".
 
 To reproduce on mac os x:
 
 in conftest.cpp:
 
 #include <conftest.h>
 int main ()
 {
    return 0;
 }
 
 in conftest.h in pwd:
 #include <iosfwd>
 
 Compile with:
 
 g++ -idirafter `pwd` conftest.cpp -save-temps
 OR
 g++ -isystem `pwd` conftest.cpp -save-temps
 
 RESULT:
   % g++ -idirafter `pwd` conftest.cpp -save-temps
 In file included from /usr/include/gcc/darwin/3.1/g++-v3/iosfwd:45,
                   from /Users/ben/tempbug/conftest.h:1,
                   from conftest.cpp:2:
 /usr/include/gcc/darwin/3.1/g++-v3/bits/stringfwd.h:49: template with C 
 linkage
 /usr/include/gcc/darwin/3.1/g++-v3/bits/stringfwd.h:57: template with C 
 linkage
 /usr/include/gcc/darwin/3.1/g++-v3/bits/stringfwd.h:61: template with C 
 linkage
 -snip more-
 
 REGRESSION:
 If i include <iosfwd> directly in conftest.cpp, i don't get the 
 problem. It has to be in a header found by isystem.
 
 % gcc -v
 Reading specs from /usr/libexec/gcc/darwin/ppc/3.1/specs
 Thread model: posix
 Apple Computer, Inc. GCC version 1161, based on gcc version 3.1 
 20020420 (prerelease)
 
 % uname -a
 Darwin lsanca1-ar8-4-60-073-020.lsanca1.dsl-verizon.net 6.1 Darwin 
 Kernel Version 6.1: Fri Sep  6 23:24:34 PDT 2002;
 root:xnu/xnu-344.2.obj~2/RELEASE_PPC  Power Macintosh powerpc
 
 -Ben
 


             reply	other threads:[~2002-11-04  4:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-03 20:26 Ben Hines [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-02-21 21:36 Patrick Frants
2002-10-12 12:04 abrahams
2002-08-13  7:06 Berthold Höllmann
2002-08-13  4:56 neil

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=20021104042601.28086.qmail@sources.redhat.com \
    --to=bhines@alumni.ucsd.edu \
    --cc=gcc-prs@gcc.gnu.org \
    --cc=jason@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).