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

Jerry DeLisle jvdelisle@charter.net
Sun Jul 14 00:09:00 GMT 2019


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  <jvdelisle@gcc.gnu.org>

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

and

2019-07-13  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	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'.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr87233.diff
Type: text/x-patch
Size: 2984 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20190714/cc6c4f91/attachment.bin>


More information about the Gcc-patches mailing list