g++ -v
Using built-in specs.
Configured with: ../configure --prefix=/opt/gcc-head --enable-languages=c,c++
--disable-checking
Thread model: posix
gcc version 4.0.0 20050103 (experimental)
Compile command:
g++ -DHAVE_CONFIG_H -I. -I. -I../../../src -I../../../images -I../../../src
-I../../../src/frontends -I../../../src/frontends/controllers -I../../../boost
-Winvalid-pch --include=./pch.h -O -fno-exceptions -c FormExternal.C -o
FormExternal.o
Result:
/opt/gcc-head/lib/gcc/i686-pc-linux-gnu/4.0.0/../../../../include/c++/4.0.0/debug/safe_base.h:
In member function �__gnu_debug::_Safe_iterator<typename __gnu_norm::map<_Key,
_Tp, _Compare, _Alloc>::iterator, __gnu_debug_def::map<_Key, _Tp, _Compare,
_Allocator> > __gnu_debug_def::map<_Key, _Tp, _Compare, _Allocator>::end() [with
_Key = std::string, _Tp = lyx::external::Template::Format, _Compare =
std::less<std::string>, _Allocator = std::allocator<std::pair<const std::string,
lyx::external::Template::Format> >]�:
/opt/gcc-head/lib/gcc/i686-pc-linux-gnu/4.0.0/../../../../include/c++/4.0.0/debug/safe_base.h:88:
internal compiler error: in make_decl_rtl, at varasm.c:867
This error goes away if "--include=./pch.h" is removed.
Also there might be a separate bug here, if I try to run the failing command
with "-save-temps" I just get a bunch or errors:
../../../src/frontends/controllers/Kernel.h:48: error: �std� has not been
declared
../../../src/frontends/controllers/Kernel.h:48: error: �string� has not been
declared
../../../src/frontends/controllers/Kernel.h:56: error: �std� has not been
declared
etc...
So it seems that "-save-temps" does not work with precompiled headers.
And because of this I do not have any precompiled sources to offer.
--
Summary: ICE in make_decl_rtl, at varasm.c:867
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: larsbj at gullik dot net
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19241