This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug driver/28528] New: [4.0/4.1/4.2 regression] Trouble compiling header files with "-x c++" using g++
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Jul 2006 13:42:15 -0000
- Subject: [Bug driver/28528] New: [4.0/4.1/4.2 regression] Trouble compiling header files with "-x c++" using g++
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The g++ driver has problems with *.h files compiled with "-x c++":
g++ -c -x c++ file.h
yields a precompiled header file.h.gch instead of file.o.
g++ -S -x c++ file.h
yields an error message:
cc1plus: error: output filename specified twice
With "-x c" everything works as expected. Also using gcc (and not g++)
with "-x c", "-x c++", "-x c-header", "-x c++-header" works fine.
This is a reression from GCC 3.3.x where using
g++ -c -x c++ file.h
or
g++ -S -x c++ file.h
led to the desired results.
--
Summary: [4.0/4.1/4.2 regression] Trouble compiling header files
with "-x c++" using g++
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: driver
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28528