From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5510 invoked by alias); 17 Apr 2004 08:12:46 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 5500 invoked by uid 48); 17 Apr 2004 08:12:46 -0000 Date: Sat, 17 Apr 2004 09:29:00 -0000 Message-ID: <20040417081246.5499.qmail@sources.redhat.com> From: "geoffk at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040114031017.13675.jbrandmeyer@earthlink.net> References: <20040114031017.13675.jbrandmeyer@earthlink.net> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug pch/13675] #including a precompiled header more than once in the same unit fails X-Bugzilla-Reason: CC X-SW-Source: 2004-04/txt/msg01402.txt.bz2 List-Id: ------- Additional Comments From geoffk at gcc dot gnu dot org 2004-04-17 08:12 ------- In the example, the file is called "pch-user1.cpp", not "pch-user1.c". With identical files, + /tmp/gcc-20030730-1/bin/g++ -c -o pch-header.h.gch pch-header.h + /tmp/gcc-20030730-1/bin/g++ -c -o pch-user1.o pch-user1.cpp In file included from pch-user1.cpp:2: another-pch-user.h:1:24: calling fdopen: Bad file descriptor but + /tmp/gcc-20030730-1/bin/gcc -c -o pch-header.h.gch pch-header.h + /tmp/gcc-20030730-1/bin/gcc -c -o pch-user1.o pch-user1.cpp [completes successfully] This is interesting (what is different about gcc vs. g++ in this case?), but mostly it's a gotcha for people like me who forget to use g++ and then can't reproduce the bug. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13675