[PATCH] PR fortran/35031 -- Check F2018:C1246
Steve Kargl
sgk@troutmask.apl.washington.edu
Fri Jan 11 01:16:00 GMT 2019
An entry-name obtains the elemental attribute from its containing
procedure. F2018:C1546 prohibits an procedure from having a BIND(C)
attribute. BIND(C) can appear on the entry-stmt line, so gfortran
needs to check for a conflict. The attached patch does this check.
Tested on x86_64-*-freebsd. Ok to commit?
2019-01-10 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/35031
* decl.c (gfc_match_entry): Check for F2018:C1546. Fix nearby
mis-indentation.
2019-01-10 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/35031
* gfortran.dg/pr35031.f90: new test.
--
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr35031.diff
Type: text/x-diff
Size: 1650 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20190111/bf2c5c29/attachment.bin>
More information about the Fortran
mailing list