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: unassig...@gcc.gnu.org
        ReportedBy: fnord...@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.

Reply via email to