https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80666

Jerry DeLisle <jvdelisle at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jvdelisle at gcc dot gnu.org

--- Comment #5 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
(In reply to Dominique d'Humieres from comment #4)
> The change in behavior is likely due to revision r238904 (pr71730). 
> 
> Note that compiling the first test in comment 0 with -std=f95 before this
> revision gives
> 
> % /opt/gcc/gcc7p-238848p2/bin/gfortran pr80666.f90 -std=f95
> pr80666.f90:3:13:
> 
>    character*(keylen), intent(in) :: key
>              1
> Error: GNU Extension: Symbol 'keylen' is used before it is typed at (1)
> pr80666.f90:1:29:
> 
>  subroutine test_arg_order(key,keylen)
>                              1
> Error: Symbol 'key' at (1) has no IMPLICIT type
> 
> > Just try to write standard conforming code if possible.
>

I wonder if the code that gave this earlier Gnu Extension error is now dead
code. The patch catches the ICE. -std=f95 still gives the GNU Extension error
which obviously is no longer an extension. Maybe this needs some adjustment,
but not critical. At a minimum, cleanup diagnostic.

Reply via email to