This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug pch/13675] #including a precompiled header more than once in the same unit fails
- From: "a dot darovskikh at compassplus dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Sep 2005 10:54:29 -0000
- Subject: [Bug pch/13675] #including a precompiled header more than once in the same unit fails
- References: <20040114031017.13675.jbrandmeyer@earthlink.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From a dot darovskikh at compassplus dot ru 2005-09-22 10:54 -------
The same problem stays unresolved in GCC-3.4.4
My test is:
$ cat header1.h
$ cat header2.h
#include "header1.h"
$ cat test.cpp
#include "header1.h"
#include "header2.h"
main()
{
}
$g++ -x c++ -c header1.h
g++ test.cpp
In file included from test.cpp:2:
header2.h:1:21: calling fdopen: Bad file descriptor
test.cpp:4: internal compiler error: Segmentation fault
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13675