public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/36167]  New: internal compiler error: in gfc_conv_descriptor_dimension, at fortran/trans-array.c:242
@ 2008-05-07  9:31 fmuldoo at me dot lsu dot edu
  2008-05-07  9:32 ` [Bug fortran/36167] " fmuldoo at me dot lsu dot edu
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: fmuldoo at me dot lsu dot edu @ 2008-05-07  9:31 UTC (permalink / raw)
  To: gcc-bugs

![root@localhost temp]# gfortran -c  -O0 gfortran-error-1.f90
!gfortran-error-1.f90: In function \u2018write_out_particles\u2019:
!gfortran-error-1.f90:21: internal compiler error: in
gfc_conv_descriptor_dimension, at fortran/trans-array.c:242
!Please submit a full bug report,
!with preprocessed source if appropriate.
!See <http://gcc.gnu.org/bugs.html> for instructions.
![root@localhost temp]# gfortran --version
!GNU Fortran (GCC) 4.4.0 20080302 (experimental) [trunk revision 132813]
!Copyright (C) 2007 Free Software Foundation, Inc.

!GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
!You may redistribute copies of GNU Fortran
!under the terms of the GNU General Public License.
!For more information about these matters, see the file named COPYING

![root@localhost temp]# uname -a
!Linux localhost.localdomain 2.6.23.12-52.fc7 #1 SMP Tue Dec 18 21:18:02 EST
2007 i686 i686 i386 GNU/Linux
![root@localhost temp]# rpm -q glibc
!glibc-2.6-4


-- 
           Summary: internal compiler error: in
                    gfc_conv_descriptor_dimension, at fortran/trans-
                    array.c:242
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: fmuldoo at me dot lsu dot edu


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


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

* [Bug fortran/36167] internal compiler error: in gfc_conv_descriptor_dimension, at fortran/trans-array.c:242
  2008-05-07  9:31 [Bug fortran/36167] New: internal compiler error: in gfc_conv_descriptor_dimension, at fortran/trans-array.c:242 fmuldoo at me dot lsu dot edu
@ 2008-05-07  9:32 ` fmuldoo at me dot lsu dot edu
  2008-05-07 14:08 ` [Bug fortran/36167] ICE " burnus at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: fmuldoo at me dot lsu dot edu @ 2008-05-07  9:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from fmuldoo at me dot lsu dot edu  2008-05-07 09:32 -------
Created an attachment (id=15589)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15589&action=view)
Very small code example


-- 


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


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

* [Bug fortran/36167] ICE in gfc_conv_descriptor_dimension, at fortran/trans-array.c:242
  2008-05-07  9:31 [Bug fortran/36167] New: internal compiler error: in gfc_conv_descriptor_dimension, at fortran/trans-array.c:242 fmuldoo at me dot lsu dot edu
  2008-05-07  9:32 ` [Bug fortran/36167] " fmuldoo at me dot lsu dot edu
@ 2008-05-07 14:08 ` burnus at gcc dot gnu dot org
  2008-05-17 16:21 ` pault at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: burnus at gcc dot gnu dot org @ 2008-05-07 14:08 UTC (permalink / raw)
  To: gcc-bugs



-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |ice-on-valid-code
      Known to fail|                            |4.1.2 4.2.1 4.3.0 4.4.0
   Last reconfirmed|0000-00-00 00:00:00         |2008-05-07 14:07:21
               date|                            |
            Summary|internal compiler error: in |ICE in
                   |gfc_conv_descriptor_dimensio|gfc_conv_descriptor_dimensio
                   |n, at fortran/trans-        |n, at fortran/trans-
                   |array.c:242                 |array.c:242


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


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

* [Bug fortran/36167] ICE in gfc_conv_descriptor_dimension, at fortran/trans-array.c:242
  2008-05-07  9:31 [Bug fortran/36167] New: internal compiler error: in gfc_conv_descriptor_dimension, at fortran/trans-array.c:242 fmuldoo at me dot lsu dot edu
  2008-05-07  9:32 ` [Bug fortran/36167] " fmuldoo at me dot lsu dot edu
  2008-05-07 14:08 ` [Bug fortran/36167] ICE " burnus at gcc dot gnu dot org
@ 2008-05-17 16:21 ` pault at gcc dot gnu dot org
  2008-05-18 21:02 ` pault at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pault at gcc dot gnu dot org @ 2008-05-17 16:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pault at gcc dot gnu dot org  2008-05-17 16:20 -------
(In reply to comment #1)
> Created an attachment (id=15589)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15589&action=view) [edit]
> Very small code example
> 
Frank,

The problem arises because of the declaration of 'u' in 'overlap_1. gfortran
declares automatic arrays to be array types in TREE-SSA.  For some reason, the
interface code in the function code is barfing when it tries to set the
dimensions of the result.  The interface is assuming that there is a descriptor
available for 'u' and this generates the ICE.  I will investigate because it is
legal code.  In the mean time, a workaround is to declare 'u' as assumed shape,
thusly:

real, intent(in), dimension(:,:,:) :: u

This forces the array to be represented as descriptor type and does not lose
anything from your code.  It also is a bit easier on the eye:)

Thanks for the report.

Paul


-- 


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


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

* [Bug fortran/36167] ICE in gfc_conv_descriptor_dimension, at fortran/trans-array.c:242
  2008-05-07  9:31 [Bug fortran/36167] New: internal compiler error: in gfc_conv_descriptor_dimension, at fortran/trans-array.c:242 fmuldoo at me dot lsu dot edu
                   ` (2 preceding siblings ...)
  2008-05-17 16:21 ` pault at gcc dot gnu dot org
@ 2008-05-18 21:02 ` pault at gcc dot gnu dot org
  2008-05-20 20:40 ` fmuldoo at me dot lsu dot edu
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pault at gcc dot gnu dot org @ 2008-05-18 21:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pault at gcc dot gnu dot org  2008-05-18 21:02 -------
Frank,

I am downgrading this to 'normal' severity - 'major' is reserved for fairly
cataclysmic bugs for the whole of gcc.  'ice-on-valid-code' will catch the
attention of gfortran developers.

I'll try to come back to it when I have sorted the allocatable component memory
leaks.

Thanks

Paul


-- 

pault at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|major                       |normal


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


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

* [Bug fortran/36167] ICE in gfc_conv_descriptor_dimension, at fortran/trans-array.c:242
  2008-05-07  9:31 [Bug fortran/36167] New: internal compiler error: in gfc_conv_descriptor_dimension, at fortran/trans-array.c:242 fmuldoo at me dot lsu dot edu
                   ` (3 preceding siblings ...)
  2008-05-18 21:02 ` pault at gcc dot gnu dot org
@ 2008-05-20 20:40 ` fmuldoo at me dot lsu dot edu
  2008-09-08  8:29 ` domob at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: fmuldoo at me dot lsu dot edu @ 2008-05-20 20:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from fmuldoo at me dot lsu dot edu  2008-05-20 20:40 -------
Subject: Re:  ICE in gfc_conv_descriptor_dimension, at
        fortran/trans-array.c:242

Hi Paul,

Thanks for the work-around.  I now have got my code built using
gfortran.

Frank



On Sat, 2008-05-17 at 16:20 +0000, pault at gcc dot gnu dot org wrote:
> 
> ------- Comment #2 from pault at gcc dot gnu dot org  2008-05-17 16:20 -------
> (In reply to comment #1)
> > Created an attachment (id=15589)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15589&action=view)
>  --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15589&action=view) [edit]
> > Very small code example
> > 
> Frank,
> 
> The problem arises because of the declaration of 'u' in 'overlap_1. gfortran
> declares automatic arrays to be array types in TREE-SSA.  For some reason, the
> interface code in the function code is barfing when it tries to set the
> dimensions of the result.  The interface is assuming that there is a descriptor
> available for 'u' and this generates the ICE.  I will investigate because it is
> legal code.  In the mean time, a workaround is to declare 'u' as assumed shape,
> thusly:
> 
> real, intent(in), dimension(:,:,:) :: u
> 
> This forces the array to be represented as descriptor type and does not lose
> anything from your code.  It also is a bit easier on the eye:)
> 
> Thanks for the report.
> 
> Paul
> 
> 


-- 


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


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

* [Bug fortran/36167] ICE in gfc_conv_descriptor_dimension, at fortran/trans-array.c:242
  2008-05-07  9:31 [Bug fortran/36167] New: internal compiler error: in gfc_conv_descriptor_dimension, at fortran/trans-array.c:242 fmuldoo at me dot lsu dot edu
                   ` (4 preceding siblings ...)
  2008-05-20 20:40 ` fmuldoo at me dot lsu dot edu
@ 2008-09-08  8:29 ` domob at gcc dot gnu dot org
  2008-09-08 13:54 ` domob at gcc dot gnu dot org
  2008-09-08 13:56 ` domob at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: domob at gcc dot gnu dot org @ 2008-09-08  8:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from domob at gcc dot gnu dot org  2008-09-08 08:28 -------
Dominique reported that my pending patch for PR 37199 fixes this problem, too,
and a test confirms this for me.  Reading the commets, it seems quite plausible
to me that the ICE here is caused because of the missing array spec after
interface mapping.

After checking in my patch, I will try to fully understand what the problem
here is and if it is really fixed with my patch.


-- 

domob at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |domob at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2008-05-07 14:07:21         |2008-09-08 08:28:09
               date|                            |


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


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

* [Bug fortran/36167] ICE in gfc_conv_descriptor_dimension, at fortran/trans-array.c:242
  2008-05-07  9:31 [Bug fortran/36167] New: internal compiler error: in gfc_conv_descriptor_dimension, at fortran/trans-array.c:242 fmuldoo at me dot lsu dot edu
                   ` (5 preceding siblings ...)
  2008-09-08  8:29 ` domob at gcc dot gnu dot org
@ 2008-09-08 13:54 ` domob at gcc dot gnu dot org
  2008-09-08 13:56 ` domob at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: domob at gcc dot gnu dot org @ 2008-09-08 13:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from domob at gcc dot gnu dot org  2008-09-08 13:52 -------
Subject: Bug 36167

Author: domob
Date: Mon Sep  8 13:51:26 2008
New Revision: 140107

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=140107
Log:
2008-09-08  Daniel Kraft  <d@domob.eu>

        PR fortran/36167
        * gfortran.dg/array_function_3.f90: New test.
        * gfortran.dg/save_3.f90: Added cleanup-modules directive.
        * gfortran.dg/string_compare_1.f90: Ditto.

Added:
    trunk/gcc/testsuite/gfortran.dg/array_function_3.f90
Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gfortran.dg/save_3.f90
    trunk/gcc/testsuite/gfortran.dg/string_compare_2.f90


-- 


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


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

* [Bug fortran/36167] ICE in gfc_conv_descriptor_dimension, at fortran/trans-array.c:242
  2008-05-07  9:31 [Bug fortran/36167] New: internal compiler error: in gfc_conv_descriptor_dimension, at fortran/trans-array.c:242 fmuldoo at me dot lsu dot edu
                   ` (6 preceding siblings ...)
  2008-09-08 13:54 ` domob at gcc dot gnu dot org
@ 2008-09-08 13:56 ` domob at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: domob at gcc dot gnu dot org @ 2008-09-08 13:56 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from domob at gcc dot gnu dot org  2008-09-08 13:54 -------
This was apparently really fixed by my patch for PR 37199, I committed the
test-case attached to trunk.  Marking fixed.


-- 

domob at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2008-09-08 13:56 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-07  9:31 [Bug fortran/36167] New: internal compiler error: in gfc_conv_descriptor_dimension, at fortran/trans-array.c:242 fmuldoo at me dot lsu dot edu
2008-05-07  9:32 ` [Bug fortran/36167] " fmuldoo at me dot lsu dot edu
2008-05-07 14:08 ` [Bug fortran/36167] ICE " burnus at gcc dot gnu dot org
2008-05-17 16:21 ` pault at gcc dot gnu dot org
2008-05-18 21:02 ` pault at gcc dot gnu dot org
2008-05-20 20:40 ` fmuldoo at me dot lsu dot edu
2008-09-08  8:29 ` domob at gcc dot gnu dot org
2008-09-08 13:54 ` domob at gcc dot gnu dot org
2008-09-08 13:56 ` domob at gcc dot gnu dot 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).