This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/21211] New: Internal compiler error, when array boundary set with maxval
- From: "aradi at phys dot upb dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Apr 2005 10:00:44 -0000
- Subject: [Bug fortran/21211] New: Internal compiler error, when array boundary set with maxval
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Compiling the following code results in an internal compiler error:
> gfortran-4.0 buggy.f90 -o buggy.o
buggy.f90: In function 'testsub':
buggy.f90:5: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
> cat buggy.f90
module test
contains
subroutine testsub(lmax, idxorb)
integer, intent(in) :: lmax(:)
integer, intent(in) :: idxorb(-maxval(lmax):,0:)
print *, idxorb
end subroutine testsub
end module test
--
Summary: Internal compiler error, when array boundary set with
maxval
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: aradi at phys dot upb dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21211