This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/49708] New: internal compiler error with allocate and no dimensions
- From: "fnordxyz at yahoo dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 11 Jul 2011 23:37:50 +0000
- Subject: [Bug fortran/49708] New: internal compiler error with allocate and no dimensions
- Auto-submitted: auto-generated
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.