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

--- Comment #5 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
Created attachment 62206
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62206&action=edit
Proposed patch to adjust warnings and errors

The attached patch has the following effects:

$ gfc pr114611.f90 
pr114611.f90:4:10:

    4 |   pause 13
      |          1
Warning: Deleted feature: PAUSE statement at (1)
pr114611.f90:7:17:

    7 | 100 format (1H ,"Hello World")
      |                 1
Warning: The H format specifier at (1) is a Fortran 95 deleted feature
$ gfc -std=legacy pr114611.f90 
pr114611.f90:7:17:

    7 | 100 format (1H ,"Hello World")
      |                 1
Warning: The H format specifier at (1) is a Fortran 95 deleted feature
$ gfc -std=f95 pr114611.f90 
pr114611.f90:4:10:

    4 |   pause 13
      |          1
Error: Deleted feature: PAUSE statement at (1)
pr114611.f90:7:14:

    7 | 100 format (1H ,"Hello World")
      |              1
Error: The H format specifier at (1) is a Fortran 95 deleted feature
pr114611.f90:6:11:

    6 |   print 100
      |           1
Error: FORMAT label 100 at (1) not defined


I do not address any changes regarding the PAUSE statement. I adjusted several
existing test cases in various ways so they would pass. I don't think we need
any new test cases.

Reply via email to