This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/46301] New: [4.6 Regression] Missing diagnosis for "len=:"
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 4 Nov 2010 09:17:29 +0000
- Subject: [Bug fortran/46301] New: [4.6 Regression] Missing diagnosis for "len=:"
- Auto-submitted: auto-generated
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