[Bug pch/13675] #including a precompiled header more than once in the same unit fails

a dot darovskikh at compassplus dot ru gcc-bugzilla@gcc.gnu.org
Thu Sep 22 10:54:00 GMT 2005


------- 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



More information about the Gcc-bugs mailing list