I receive an internal compiler error for a certain C++ source file when enabling OpenMP. I compile with
$ /usr/local/packages/numrel/gcc-129614/bin/g++-129614 -c reduce.ii -fopenmp and receive the error message /home/eschnett/Calpha/arrangements/Carpet/CarpetReduce/src/reduce.cc: In function void CarpetReduce::reduce(const int*, const int*, const int*, const std::vector<const void*, std::allocator<const void*> >&, const std::vector<double, std::allocator<double> >&, void*, void*, const CCTK_REAL8*, CCTK_REAL8) [with T = int, OP = CarpetReduce::count::op<int>]: /home/eschnett/Calpha/arrangements/Carpet/Carpet/src/typecase:126: instantiated from here /home/eschnett/Calpha/arrangements/Carpet/CarpetReduce/src/reduce.cc:512: internal compiler error: in tsubst_copy, at cp/pt.c:9828 I am using the following version of g++: $ /usr/local/packages/numrel/gcc-129614/bin/g++-129614 -v Using built-in specs. Target: x86_64-unknown-linux-gnu Configured with: /home/eschnett/src/gcc/configure --prefix=/usr/local/packages/numrel/gcc-129614 --disable-multilib --with-gmp=/usr/local/packages/numrel/gmp-4.2.1 --with-mpfr=/usr/local/packages/numrel/mpfr-2.2.1 --enable-languages=c,c++,fortran,java,objc,treelang --program-suffix=-129614 Thread model: posix gcc version 4.3.0 20071024 (experimental) (GCC) I append the preprocessed source code. -- Summary: internal compiler error: in tsubst_copy Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: schnetter at aei dot mpg dot de GCC build triplet: x86_64-unknown-linux-gnu GCC host triplet: x86_64-unknown-linux-gnu GCC target triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33890