From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28117 invoked by alias); 4 Nov 2002 04:26:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 28087 invoked by uid 71); 4 Nov 2002 04:26:01 -0000 Date: Sun, 03 Nov 2002 20:26:00 -0000 Message-ID: <20021104042601.28086.qmail@sources.redhat.com> To: jason@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Ben Hines Subject: Re: c++/7327: -isystem and template linkage Reply-To: Ben Hines X-SW-Source: 2002-11/txt/msg00141.txt.bz2 List-Id: The following reply was made to PR c++/7327; it has been noted by GNATS. From: Ben Hines 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 int main () { return 0; } in conftest.h in pwd: #include 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 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