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/21211] New: Internal compiler error, when array boundary set with maxval


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


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