This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]