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/50815] New: ICE on assignment to non-allocated deferred length character when -fbounds-check


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50815

             Bug #: 50815
           Summary: ICE on assignment to non-allocated deferred length
                    character when -fbounds-check
    Classification: Unclassified
           Product: gcc
           Version: 4.6.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: rohou@brandeis.edu


Created attachment 25563
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25563
reproducer & output for ICE

The following code (test.f90):
SUBROUTINE TEST(VALUE)
    IMPLICIT NONE
    CHARACTER(LEN=:),    ALLOCATABLE    ::    VALUE
    CHARACTER(LEN=128)    ::    VAL
    VALUE = VAL
END SUBROUTINE TEST

triggers an ICE with gfortran 4.6.1 when -fbounds-check is used.

The output from
gfortran -v -save-temps -fbounds-check test.f90
is attached


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