The following was produced on a gentoo x86 linux system with a pentium-m processor, the system compiler is Gentoo 4.3.3-r2 and kernel is linux-2.6.28-gentoo-r5.
Last night, I built gcc 4.4.0 and installed it into /home/bgalehouse/installs. I then reconfigured a library (CGAL) to make use of c++0x features, and tried to compile a program. This program worked fine under the system compiler when the library is configured to avoid c++0x features. I might have time to compile and try a recent snapshot over the next few days, if so I'll try to amend this bug report accordingly. g++ -v --save-temps -c --std=c++0x -g -O0 -Wall -D_GLIBCXX_DEBUG -I/home/bgalehouse/installs/include -Isubdivision_trees -I. meshTangleCube.cpp -o meshTangleCube.o Using built-in specs. Target: i686-pc-linux-gnu Configured with: ./configure --prefix=/home/bgalehouse/installs/ --enable-languages=c,c++ --with-ppl=/home/bgalehouse/install --with-cloog=/home/bgalehouse/install --with-gmp=/home/bgalehouse/install Thread model: posix gcc version 4.4.0 (GCC) COLLECT_GCC_OPTIONS='-v' '-save-temps' '-c' '-std=c++0x' '-g' '-O0' '-Wall' '-D_GLIBCXX_DEBUG' '-I/home/bgalehouse/installs/include' '-Isubdivision_trees' '-I.' '-o' 'meshTangleCube.o' '-shared-libgcc' '-mtune=generic' /home/bgalehouse/installs/bin/../libexec/gcc/i686-pc-linux-gnu/4.4.0/cc1plus -E -quiet -v -I/home/bgalehouse/installs/include -Isubdivision_trees -I. -iprefix /home/bgalehouse/installs/bin/../lib/gcc/i686-pc-linux-gnu/4.4.0/ -D_GNU_SOURCE -D_GLIBCXX_DEBUG m eshTangleCube.cpp -mtune=generic -std=c++0x -Wall -g -fworking-directory -O0 -fpch-preprocess -o meshTangleCube.ii ignoring nonexistent directory "/home/bgalehouse/installs/bin/../lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../i686-pc-linux-gnu/include" ignoring duplicate directory "/home/bgalehouse/installs/bin/../lib/gcc/../../lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../include/c++/4.4.0" ignoring duplicate directory "/home/bgalehouse/installs/bin/../lib/gcc/../../lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../include/c++/4.4.0/i686-pc-linux-gnu" ignoring duplicate directory "/home/bgalehouse/installs/bin/../lib/gcc/../../lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../include/c++/4.4.0/backward" ignoring nonexistent directory "/usr/local/include" ignoring duplicate directory "/home/bgalehouse/installs/bin/../lib/gcc/../../include" ignoring duplicate directory "/home/bgalehouse/installs/bin/../lib/gcc/../../lib/gcc/i686-pc-linux-gnu/4.4.0/include" ignoring duplicate directory "/home/bgalehouse/installs/bin/../lib/gcc/../../lib/gcc/i686-pc-linux-gnu/4.4.0/include-fixed" ignoring nonexistent directory "/home/bgalehouse/installs/bin/../lib/gcc/../../lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../i686-pc-linux-gnu/include" ignoring duplicate directory "/home/bgalehouse/installs/include" as it is a non-system directory that duplicates a system directory ignoring duplicate directory "/home/bgalehouse/installs/include/" as it is a non-system directory that duplicates a system directory #include "..." search starts here: #include <...> search starts here: subdivision_trees . /home/bgalehouse/installs/include/ /home/bgalehouse/installs/bin/../lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../include/c++/4.4.0 /home/bgalehouse/installs/bin/../lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../include/c++/4.4.0/i686-pc-linux-gnu /home/bgalehouse/installs/bin/../lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../include/c++/4.4.0/backward /home/bgalehouse/installs/bin/../lib/gcc/i686-pc-linux-gnu/4.4.0/include /home/bgalehouse/installs/bin/../lib/gcc/i686-pc-linux-gnu/4.4.0/include-fixed /usr/include End of search list. COLLECT_GCC_OPTIONS='-v' '-save-temps' '-c' '-std=c++0x' '-g' '-O0' '-Wall' '-D_GLIBCXX_DEBUG' '-I/home/bgalehouse/installs/include' '-Isubdivision_trees' '-I.' '-o' 'meshTangleCube.o' '-shared-libgcc' '-mtune=generic' /home/bgalehouse/installs/bin/../libexec/gcc/i686-pc-linux-gnu/4.4.0/cc1plus -fpreprocessed meshTangleCube.ii -quiet -dumpbase meshTangleCube.cpp -mtune=generic -auxbase-strip meshTangleCube.o -g -O0 -Wall -std=c++0x -version -o meshTangleCube.s GNU C++ (GCC) version 4.4.0 (i686-pc-linux-gnu) compiled by GNU C version 4.4.0, GMP version 4.3, MPFR version 2.4.1-p1. warning: GMP header version 4.3 differs from library version 4.3.0. GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: a06cae60c4bc667b19bd2a267478aeb7 In file included from FunctionInfo.h++:5, from SimpleHull.h++:11, from CGALHullFinder.h++:4, from meshTangleCube.cpp:10: subdivision_trees/CGAL/Spatial_subdivision_tree.h: In member function 'CGAL::Spatial_subdivision_tree<a_dim, D_>::rect_reference<a_dim> CGAL::Spatial_subdivision_tree<a_dim, D_>::root_reference() [with unsigned int a_dim = 3u, D_ = CGALHullFinder<CGAL::Carte sian_d<__gmp_expr<__mpq_struct [1], __mpq_struct [1]>, CGAL::Linear_algebraCd<__gmp_expr<__mpq_struct [1], __mpq_struct [1]>, std::allocator<__gmp_expr<__mpq_struct [1], __mpq_struct [1]> > > >, tangleCubeFunction<3u, __gmp_expr<__mpq_struct [1], __mpq_struc t [1]> >, 3u, true>::info]': Mesher.h++:78: instantiated from 'Mesher<FunctionType, K, dim, D_>::Mesher(FunctionType&, typename K::RT, typename K::RT) [with FunctionType = tangleCubeFunction<3u, __gmp_expr<__mpq_struct [1], __mpq_struct [1]> >, K = CGAL::Cartesian_d<__gmp_expr<__mpq_s truct [1], __mpq_struct [1]>, CGAL::Linear_algebraCd<__gmp_expr<__mpq_struct [1], __mpq_struct [1]>, std::allocator<__gmp_expr<__mpq_struct [1], __mpq_struct [1]> > > >, unsigned int dim = 3u, D_ = CGALHullFinder<CGAL::Cartesian_d<__gmp_expr<__mpq_struct [1] , __mpq_struct [1]>, CGAL::Linear_algebraCd<__gmp_expr<__mpq_struct [1], __mpq_struct [1]>, std::allocator<__gmp_expr<__mpq_struct [1], __mpq_struct [1]> > > >, tangleCubeFunction<3u, __gmp_expr<__mpq_struct [1], __mpq_struct [1]> >, 3u, true>::info]' meshTangleCube.cpp:66: instantiated from here subdivision_trees/CGAL/Spatial_subdivision_tree.h:419: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. -- Summary: Compiler crash possibly related to --std=c++0x Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bgalehouse at spamcop dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40048