[Bug c++/48632] New: Internal compiler error when using OpenMP with template
phelippeneveu at gmail dot com
gcc-bugzilla@gcc.gnu.org
Fri Apr 15 20:04:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48632
Summary: Internal compiler error when using OpenMP with
template
Product: gcc
Version: 4.5.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: phelippeneveu@gmail.com
Created attachment 24004
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24004
Source code to reproduce the problem.
Hi,
I'm getting a internal compiler error when trying to compile a piece of code
that uses OpenMP inside of templated code. I use pointer arithmetic using a
template type inside the for loop header. I'm not sure if my code is legal for
OpenMP, but it should not cause a internal compiler error.
Output of "gcc -v":
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/home/pneveu/apps/gcc-4.5-src/libexec/gcc/x86_64-unknown-linux-gnu/4.5.3/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: src/gcc/configure
--with-mpc=/home/pneveu/apps/gcc-4.5-src/prerequisites
--with-mpfr=/home/pneveu/apps/gcc-4.5-src/prerequisites
--with-gmp=/home/pneveu/apps/gcc-4.5-src/prerequisites
--with-ppl=/home/pneveu/apps/gcc-4.5-src/prerequisites
--with-cloog=/home/pneveu/apps/gcc-4.5-src/prerequisites
--prefix=/home/pneveu/apps/gcc-4.5-src
Thread model: posix
gcc version 4.5.3 20110412 (prerelease) (GCC)
Command to reproduce the problem:
g++ -fopenmp -c test.cpp
Output of the problem:
test.cpp: In function ‘void CopyData(TDataType*, unsigned int, unsigned int,
TDataType*, unsigned int, unsigned int, unsigned int, unsigned int, unsigned
int)’:
test.cpp:25:54: internal compiler error: in build2_stat, at tree.c:3680
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Cheers,
Phelippe
More information about the Gcc-bugs
mailing list