public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/46874] New: internal compiler error: in gfc_conv_descriptor_data_get, at fortran/trans-array.c:147
@ 2010-12-09 17:36 kapinos at rz dot rwth-aachen.de
  2010-12-09 17:42 ` [Bug fortran/46874] " dominiq at lps dot ens.fr
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: kapinos at rz dot rwth-aachen.de @ 2010-12-09 17:36 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46874

           Summary: internal compiler error: in
                    gfc_conv_descriptor_data_get, at
                    fortran/trans-array.c:147
           Product: gcc
           Version: 4.5.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: kapinos@rz.rwth-aachen.de


Created attachment 22695
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22695
reproducer code.

Compiling the attached example code, got the error: 
-------------------------------------------------
redukt.f90: In function 'a35_1':
redukt.f90:5:0: internal compiler error: in gfc_conv_descriptor_data_get, at
fortran/trans-array.c:147
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
-------------------------------------------------

Reproducing:

$ gfortran -fopenmp redukt.f90 -c




Version:
-------------------------------------------------
$ gfortran -v                    
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/<....snip.snap....>/4.5.1/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.5.1/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ./configure --prefix=/home/<....snip.snap....>/gcc451/bin
--enable-lto --with-mpc=/home/<....snip.snap....>/gcc451/bin
--with-ppl=/home/<....snip.snap....>/gcc451/bin
--with-mpfr=/home/<....snip.snap....>/gcc451/bin
--with-gmp=/home/<....snip.snap....>/gcc451/bin
--with-mpfr=/home/<....snip.snap....>/gcc451/bin
--with-cloog=/home/<....snip.snap....>/gcc451/bin
--with-libelf=/home/<....snip.snap....>/gcc451/bin
Thread model: posix
gcc version 4.5.1 (GCC)
-------------------------------------------------
<....snip.snap....> is of course a existing path.



System:
Linux HOSTNAME 2.6.18-194.26.1.el5 #1 SMP Tue Nov 9 12:54:20 EST 2010 x86_64
x86_64 x86_64 GNU/Linux


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug fortran/46874] internal compiler error: in gfc_conv_descriptor_data_get, at fortran/trans-array.c:147
  2010-12-09 17:36 [Bug fortran/46874] New: internal compiler error: in gfc_conv_descriptor_data_get, at fortran/trans-array.c:147 kapinos at rz dot rwth-aachen.de
@ 2010-12-09 17:42 ` dominiq at lps dot ens.fr
  2010-12-09 21:49 ` [Bug fortran/46874] [OpenMP] ICE " burnus at gcc dot gnu.org
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: dominiq at lps dot ens.fr @ 2010-12-09 17:42 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46874

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2010-12-09 17:42:21 UTC ---
Confirmed on 4.4.4, 4.5.0, and trunk r167642.


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug fortran/46874] [OpenMP] ICE in gfc_conv_descriptor_data_get, at fortran/trans-array.c:147
  2010-12-09 17:36 [Bug fortran/46874] New: internal compiler error: in gfc_conv_descriptor_data_get, at fortran/trans-array.c:147 kapinos at rz dot rwth-aachen.de
  2010-12-09 17:42 ` [Bug fortran/46874] " dominiq at lps dot ens.fr
@ 2010-12-09 21:49 ` burnus at gcc dot gnu.org
  2010-12-13 10:33 ` kapinos at rz dot rwth-aachen.de
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: burnus at gcc dot gnu.org @ 2010-12-09 21:49 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug fortran/46874] [OpenMP] ICE in gfc_conv_descriptor_data_get, at fortran/trans-array.c:147
  2010-12-09 17:36 [Bug fortran/46874] New: internal compiler error: in gfc_conv_descriptor_data_get, at fortran/trans-array.c:147 kapinos at rz dot rwth-aachen.de
  2010-12-09 17:42 ` [Bug fortran/46874] " dominiq at lps dot ens.fr
  2010-12-09 21:49 ` [Bug fortran/46874] [OpenMP] ICE " burnus at gcc dot gnu.org
@ 2010-12-13 10:33 ` kapinos at rz dot rwth-aachen.de
  2010-12-13 10:38 ` kapinos at rz dot rwth-aachen.de
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: kapinos at rz dot rwth-aachen.de @ 2010-12-13 10:33 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46874

--- Comment #3 from Paul <kapinos at rz dot rwth-aachen.de> 2010-12-13 10:33:02 UTC ---
Yes, the OpenMP Standard changed from 2.5 to 3.0 an describing reductions: 

2.5:
 Fortran pointers, Cray pointers, assumed-size arrays and allocatable arrays
may not appear in a reduction clause.


3.0:
 An original list item with the ALLOCATABLE attribute must be in the allocated
state at entry to the construct containing the reduction clause. Additionally,
the list item must not be deallocated and/or allocated within the region.
 Fortran pointers, Cray pointers and assumed-size arrays may not appear in a
 reduction clause.

and even more: be avare of changing this points regarding the REDUCTION clause
again. Such-called "User Definded Reductions" are in discussion now.


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug fortran/46874] [OpenMP] ICE in gfc_conv_descriptor_data_get, at fortran/trans-array.c:147
  2010-12-09 17:36 [Bug fortran/46874] New: internal compiler error: in gfc_conv_descriptor_data_get, at fortran/trans-array.c:147 kapinos at rz dot rwth-aachen.de
                   ` (2 preceding siblings ...)
  2010-12-13 10:33 ` kapinos at rz dot rwth-aachen.de
@ 2010-12-13 10:38 ` kapinos at rz dot rwth-aachen.de
  2010-12-14 12:56 ` burnus at gcc dot gnu.org
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: kapinos at rz dot rwth-aachen.de @ 2010-12-13 10:38 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46874

--- Comment #4 from Paul <kapinos at rz dot rwth-aachen.de> 2010-12-13 10:37:59 UTC ---
Only GCC gfortran compiler has the problem. 

There is no problem to compile the attached redukt.f90 file with ifort 11.1 and
12 (2011XE) and also with the PGI Fortran compiler (10.9) and Sun Studio
compiler (12.1).


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug fortran/46874] [OpenMP] ICE in gfc_conv_descriptor_data_get, at fortran/trans-array.c:147
  2010-12-09 17:36 [Bug fortran/46874] New: internal compiler error: in gfc_conv_descriptor_data_get, at fortran/trans-array.c:147 kapinos at rz dot rwth-aachen.de
                   ` (3 preceding siblings ...)
  2010-12-13 10:38 ` kapinos at rz dot rwth-aachen.de
@ 2010-12-14 12:56 ` burnus at gcc dot gnu.org
  2010-12-14 13:56 ` jakub at gcc dot gnu.org
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: burnus at gcc dot gnu.org @ 2010-12-14 12:56 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46874

--- Comment #5 from Tobias Burnus <burnus at gcc dot gnu.org> 2010-12-14 12:56:38 UTC ---
Patch: http://gcc.gnu.org/ml/gcc-patches/2010-12/msg01081.html


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug fortran/46874] [OpenMP] ICE in gfc_conv_descriptor_data_get, at fortran/trans-array.c:147
  2010-12-09 17:36 [Bug fortran/46874] New: internal compiler error: in gfc_conv_descriptor_data_get, at fortran/trans-array.c:147 kapinos at rz dot rwth-aachen.de
                   ` (4 preceding siblings ...)
  2010-12-14 12:56 ` burnus at gcc dot gnu.org
@ 2010-12-14 13:56 ` jakub at gcc dot gnu.org
  2010-12-14 13:59 ` jakub at gcc dot gnu.org
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: jakub at gcc dot gnu.org @ 2010-12-14 13:56 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46874

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-12-14 13:56:35 UTC ---
Author: jakub
Date: Tue Dec 14 13:56:25 2010
New Revision: 167798

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=167798
Log:
    PR fortran/46874
    * trans-openmp.c (gfc_trans_omp_array_reduction): Handle allocatable
    dummy variables.

    * libgomp.fortran/allocatable6.f90: New test.

Added:
    trunk/libgomp/testsuite/libgomp.fortran/allocatable6.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/trans-openmp.c
    trunk/gcc/testsuite/ChangeLog


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug fortran/46874] [OpenMP] ICE in gfc_conv_descriptor_data_get, at fortran/trans-array.c:147
  2010-12-09 17:36 [Bug fortran/46874] New: internal compiler error: in gfc_conv_descriptor_data_get, at fortran/trans-array.c:147 kapinos at rz dot rwth-aachen.de
                   ` (5 preceding siblings ...)
  2010-12-14 13:56 ` jakub at gcc dot gnu.org
@ 2010-12-14 13:59 ` jakub at gcc dot gnu.org
  2010-12-27  0:16 ` dfranke at gcc dot gnu.org
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: jakub at gcc dot gnu.org @ 2010-12-14 13:59 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46874

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-12-14 13:59:25 UTC ---
Author: jakub
Date: Tue Dec 14 13:59:20 2010
New Revision: 167799

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=167799
Log:
    PR fortran/46874
    * trans-openmp.c (gfc_trans_omp_array_reduction): Handle allocatable
    dummy variables.

    * libgomp.fortran/allocatable6.f90: New test.

Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/libgomp/ChangeLog


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug fortran/46874] [OpenMP] ICE in gfc_conv_descriptor_data_get, at fortran/trans-array.c:147
  2010-12-09 17:36 [Bug fortran/46874] New: internal compiler error: in gfc_conv_descriptor_data_get, at fortran/trans-array.c:147 kapinos at rz dot rwth-aachen.de
                   ` (6 preceding siblings ...)
  2010-12-14 13:59 ` jakub at gcc dot gnu.org
@ 2010-12-27  0:16 ` dfranke at gcc dot gnu.org
  2010-12-27 12:58 ` jakub at gcc dot gnu.org
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: dfranke at gcc dot gnu.org @ 2010-12-27  0:16 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46874

Daniel Franke <dfranke at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2010.12.27 00:15:55
                 CC|                            |dfranke at gcc dot gnu.org
     Ever Confirmed|0                           |1

--- Comment #8 from Daniel Franke <dfranke at gcc dot gnu.org> 2010-12-27 00:15:55 UTC ---
Jakub, is there anything left here or can this report be closed?


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug fortran/46874] [OpenMP] ICE in gfc_conv_descriptor_data_get, at fortran/trans-array.c:147
  2010-12-09 17:36 [Bug fortran/46874] New: internal compiler error: in gfc_conv_descriptor_data_get, at fortran/trans-array.c:147 kapinos at rz dot rwth-aachen.de
                   ` (7 preceding siblings ...)
  2010-12-27  0:16 ` dfranke at gcc dot gnu.org
@ 2010-12-27 12:58 ` jakub at gcc dot gnu.org
  2011-01-16 20:26 ` jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: jakub at gcc dot gnu.org @ 2010-12-27 12:58 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46874

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |ASSIGNED
                 CC|                            |jakub at gcc dot gnu.org
         AssignedTo|unassigned at gcc dot       |jakub at gcc dot gnu.org
                   |gnu.org                     |

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-12-27 12:58:01 UTC ---
It has been committed just to trunk so far, not to 4.5 nor 4.4.


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug fortran/46874] [OpenMP] ICE in gfc_conv_descriptor_data_get, at fortran/trans-array.c:147
  2010-12-09 17:36 [Bug fortran/46874] New: internal compiler error: in gfc_conv_descriptor_data_get, at fortran/trans-array.c:147 kapinos at rz dot rwth-aachen.de
                   ` (8 preceding siblings ...)
  2010-12-27 12:58 ` jakub at gcc dot gnu.org
@ 2011-01-16 20:26 ` jakub at gcc dot gnu.org
  2011-01-17  0:05 ` jakub at gcc dot gnu.org
  2011-01-17  8:06 ` jakub at gcc dot gnu.org
  11 siblings, 0 replies; 13+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-01-16 20:26 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46874

--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-01-16 20:18:04 UTC ---
Author: jakub
Date: Sun Jan 16 20:18:01 2011
New Revision: 168864

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=168864
Log:
    Backport from mainline
    2010-12-14  Jakub Jelinek  <jakub@redhat.com>

    PR fortran/46874
    * trans-openmp.c (gfc_trans_omp_array_reduction): Handle allocatable
    dummy variables.

    * libgomp.fortran/allocatable6.f90: New test.

Added:
    branches/gcc-4_5-branch/libgomp/testsuite/libgomp.fortran/allocatable6.f90
Modified:
    branches/gcc-4_5-branch/gcc/fortran/ChangeLog
    branches/gcc-4_5-branch/gcc/fortran/trans-openmp.c
    branches/gcc-4_5-branch/libgomp/ChangeLog


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug fortran/46874] [OpenMP] ICE in gfc_conv_descriptor_data_get, at fortran/trans-array.c:147
  2010-12-09 17:36 [Bug fortran/46874] New: internal compiler error: in gfc_conv_descriptor_data_get, at fortran/trans-array.c:147 kapinos at rz dot rwth-aachen.de
                   ` (9 preceding siblings ...)
  2011-01-16 20:26 ` jakub at gcc dot gnu.org
@ 2011-01-17  0:05 ` jakub at gcc dot gnu.org
  2011-01-17  8:06 ` jakub at gcc dot gnu.org
  11 siblings, 0 replies; 13+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-01-17  0:05 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46874

--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-01-16 22:54:39 UTC ---
Author: jakub
Date: Sun Jan 16 22:54:37 2011
New Revision: 168878

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=168878
Log:
    Backport from mainline
    2010-12-14  Jakub Jelinek  <jakub@redhat.com>

    PR fortran/46874
    * trans-openmp.c (gfc_trans_omp_array_reduction): Handle allocatable
    dummy variables.

    * libgomp.fortran/allocatable6.f90: New test.

Added:
    branches/gcc-4_4-branch/libgomp/testsuite/libgomp.fortran/allocatable6.f90
Modified:
    branches/gcc-4_4-branch/gcc/fortran/ChangeLog
    branches/gcc-4_4-branch/gcc/fortran/trans-openmp.c
    branches/gcc-4_4-branch/libgomp/ChangeLog


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug fortran/46874] [OpenMP] ICE in gfc_conv_descriptor_data_get, at fortran/trans-array.c:147
  2010-12-09 17:36 [Bug fortran/46874] New: internal compiler error: in gfc_conv_descriptor_data_get, at fortran/trans-array.c:147 kapinos at rz dot rwth-aachen.de
                   ` (10 preceding siblings ...)
  2011-01-17  0:05 ` jakub at gcc dot gnu.org
@ 2011-01-17  8:06 ` jakub at gcc dot gnu.org
  11 siblings, 0 replies; 13+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-01-17  8:06 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46874

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #12 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-01-17 08:02:05 UTC ---
Fixed.


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2011-01-17  8:02 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-09 17:36 [Bug fortran/46874] New: internal compiler error: in gfc_conv_descriptor_data_get, at fortran/trans-array.c:147 kapinos at rz dot rwth-aachen.de
2010-12-09 17:42 ` [Bug fortran/46874] " dominiq at lps dot ens.fr
2010-12-09 21:49 ` [Bug fortran/46874] [OpenMP] ICE " burnus at gcc dot gnu.org
2010-12-13 10:33 ` kapinos at rz dot rwth-aachen.de
2010-12-13 10:38 ` kapinos at rz dot rwth-aachen.de
2010-12-14 12:56 ` burnus at gcc dot gnu.org
2010-12-14 13:56 ` jakub at gcc dot gnu.org
2010-12-14 13:59 ` jakub at gcc dot gnu.org
2010-12-27  0:16 ` dfranke at gcc dot gnu.org
2010-12-27 12:58 ` jakub at gcc dot gnu.org
2011-01-16 20:26 ` jakub at gcc dot gnu.org
2011-01-17  0:05 ` jakub at gcc dot gnu.org
2011-01-17  8:06 ` jakub at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).