https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123025
Bug ID: 123025
Summary: Old style character declarations with parenthesized
length not marked as obsolescent.
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: w6ws at earthlink dot net
Target Milestone: ---
program old_charlen
character*5 string5 ! Gives obsolescent message
character*(5) string5const ! Silent with constant
character*(2+3) string5expr ! Silent with expression
end program
When compiled with -std=f95 (or later):
$ gfortran -std=f95 old_charlen.f90
old_charlen.f90:3:14:
3 | character*5 string5 ! Gives obsolescent message
| 1
Warning: Obsolescent feature: Old-style character length at (1)
$