[Bug fortran/49708] New: internal compiler error with allocate and no dimensions

fnordxyz at yahoo dot com gcc-bugzilla@gcc.gnu.org
Mon Jul 11 23:38:00 GMT 2011


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

           Summary: internal compiler error with allocate and no
                    dimensions
           Product: gcc
           Version: 4.6.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: fnordxyz@yahoo.com


Compiling the following code with no options leads to the internal compiler
error.  Expected behavior would be an error related to the missing dimension
size.  Works when 'x' is declared with 'allocatable' and not 'pointer'.


subroutine fubar(x)

     real, pointer, dimension(:) :: x

     allocate(x)

end subroutine fubar


bug.f90: In function 'fubar':
bug.f90:5:0: internal compiler error: in gfc_array_allocate, at
fortran/trans-array.c:4372
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.



More information about the Gcc-bugs mailing list