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/46301] New: [4.6 Regression] Missing diagnosis for "len=:"


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

           Summary: [4.6 Regression] Missing diagnosis for "len=:"
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Keywords: accepts-invalid, diagnostic
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: burnus@gcc.gnu.org


Found in PR 35810. The following program is accepted without any error for the
"len=:".

While the program is valid Fortran 2003, without trans*.c implementation for
allocatable string lengths (cf. PR 45170), it should be rejected.

   program tst
      character(len=:), allocatable :: S
      S='abcdef'
      S=S(3:)
      write(*,'("|",A,"|")')S
   end program tst


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