This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/46874] [OpenMP] ICE in gfc_conv_descriptor_data_get, at fortran/trans-array.c:147
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 9 Dec 2010 21:49:00 +0000
- Subject: [Bug fortran/46874] [OpenMP] ICE in gfc_conv_descriptor_data_get, at fortran/trans-array.c:147
- Auto-submitted: auto-generated
- References: <bug-46874-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46874
Tobias Burnus <burnus at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |openmp
CC| |burnus at gcc dot gnu.org
Summary|internal compiler error: in |[OpenMP] ICE in
|gfc_conv_descriptor_data_ge |gfc_conv_descriptor_data_ge
|t, at |t, at
|fortran/trans-array.c:147 |fortran/trans-array.c:147
--- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> 2010-12-09 21:49:00 UTC ---
When compiling with GCC 4.3 (OpenMP 2.5), one gets the error:
!$OMP PARALLEL DO PRIVATE(I) SHARED(X, N) REDUCTION(+:A) REDUCTION(MIN:B)
1
Error: REDUCTION clause object 'a' is ALLOCATABLE at (1)
Seemingly, this restriction has been lifted in OpenMPv3.0 (new in GCC 4.4) - or
at least the check has been removed. In any case, with GCC 4.4 to 4.6 and with
ifort 11.1 one gets an ICE.