[patch, fortran] Pr87233 Constraint C1279 still followed after f2008 standard revision

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[patch, fortran] Pr87233 Constraint C1279 still followed after f2008 standard revision

jerry DeLisle-3
Hi all,

The attached patch removes the subject constraint for gfortran default and
-std=f2008/f2018. I had issues with repetitious errors. I tried to get rid of it
using the e->error = 1 method useded later in the function, but that did not
work, so I resorted to gfc_error_now which does the job.

Also modified one test case and added a new to cover this in the testsuite.

Regression tested on x86_64-pc-linux-gnu.

OK for trunk?

Regards,

Jerry

2019-07-13  Jerry DeLisle  <[hidden email]>

        PR fortran/87233
        * expr.c (check_restricted): Relax constraint C1279 which was
        removed from F2008 and above.

and

2019-07-13  Jerry DeLisle  <[hidden email]>

        PR fortran/87233
        * gfortran.dg/initialization_14.f90: Modify to now pass by
        remiving two dg-error commands. Added comments.
        * gfortran.dg/initialization_30.f90: New test that includes the
        two tests removed above with the 'dg-options -std=f95'.


pr87233.diff (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [patch, fortran] Pr87233 Constraint C1279 still followed after f2008 standard revision

jerry DeLisle-3
Could not get the use of gfc_get_errors to work right, it missed one of the
errors in initialazation_30.f90. So I just did the deed.

Regards,

Jerry

Committing to svn+ssh://[hidden email]/svn/gcc/trunk ...
        A gcc/testsuite/gfortran.dg/initialization_30.f90
        M gcc/fortran/ChangeLog
        M gcc/fortran/expr.c
        M gcc/testsuite/ChangeLog
        M gcc/testsuite/gfortran.dg/initialization_14.f90
Committed r273484