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: unassig...@gcc.gnu.org ReportedBy: bur...@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