This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15259] segv
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 May 2004 14:48:29 -0000
- Subject: [Bug c++/15259] segv
- References: <20040503093734.15259.igodard@pacbell.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2004-05-11 14:48 -------
OK, I can finally reproduce this:
g/x> rm x.cc
g/x> touch x.cc
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ /usr/include -o x.o -c x.cc
c++: /usr/include: linker input file unused because linking not done
cc1plus: /usr/include: No such file or directory
cc1plus: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
The trick is to ask the compiler to both compile /usr/include (a directory)
and x.cc (a file), and at the same time to give an output file via -o.
However, this is already fixed on mainline:
g/x> rm x.cc
g/x> touch x.cc
g/x> /home/bangerth/bin/gcc-3.5-pre/bin/c++ /usr/include -o x.o -c x.cc
c++: /usr/include: linker input file unused because linking not done
Strictly speaking, this bug is a regression in 3.4 against 3.3.4, which
doesn't ICE on this input. However, given the bogosity of the input
and that it is already fixed on mainline, I predict that nobody will feel
a real great urge to fix it on 3.4.x as well, so I'll just close the PR.
Thanks anyway!
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15259