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/64069] New: [4.8/4.9 Regression] ICE on allocating character array with source


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64069

            Bug ID: 64069
           Summary: [4.8/4.9 Regression] ICE on allocating character array
                    with source
           Product: gcc
           Version: 4.9.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: janus at gcc dot gnu.org

Consider the following example code:

character(len=12), allocatable :: yDesc(:)
allocate(yDesc(5), source="some_string")
print *,yDesc(1:5)
end

This ICEs with gfortran 4.7.4, 4.8.3 and 4.9.1, while it compiles and runs as
expected with 4.6.4. Haven't tried trunk.


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