This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/77391] gfortran allows CHARACTER(LEN=:),PARAMETER:: STRING='constant' buts does not report it as an extension
- From: "dominiq at lps dot ens.fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 26 Aug 2016 20:45:43 +0000
- Subject: [Bug fortran/77391] gfortran allows CHARACTER(LEN=:),PARAMETER:: STRING='constant' buts does not report it as an extension
- Auto-submitted: auto-generated
- References: <bug-77391-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77391
--- Comment #4 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> C402 (R401) A colon shall not be used as a type-param-value except
> in the declaration of an entity or component that has the POINTER
> or ALLOCATABLE attribute.
>
> There is no "except for a named constant".
(1) As you have noticed this requirement does not make sense for PARAMETER.
(2) IMO this conflicts with
> type parameter whose value is permitted to be assumed, deferred,
^^^^^^^^