On 6/23/25 9:43 AM, Paul Richard Thomas wrote:
Hello All,

I was mulling over the F2018 statusĀ of gfortran, when I came across the additions to the IMPORT statement. This seemed like such a useful addition to fortran that I set about an implementation; thinking that this would be low hanging fruit. Parsing and checking the constraintsĀ C897-8100 turned out to be straightforward. C8101 was already implemented for F2008 IMPORT. C8102 required a lot more work! (Please see the patch for the constraints.)

Steve K got in touch, when he found out that we had been working in parallel on the new IMPORT features. Thus encouraged by our exchanges, I ground on until the patch reached its present state. I think that the ChangeLog is clear enough, even if the patch came out a bit long winded.

Of the existing IMPORT tests, only import3.f90 needed modification by setting -std=f2008 because of the change in the wording of the error messages. The new test, import12.f90, is complete IMHO but I am open to suggestions for additions. I cannot return to working on this until the second week of July so you have plenty of time to test and comment.

Regtests fine with x86_64 on FC42. OK for mainline?

Paul

I do think the new test case is very thorough. I reviewed that patch for anything glaring and it looks good. I also tried it on some things here and got what I expected.

If you and Steve have been in touch I think it is OK for mainline.

Cheers,

Jerry

Reply via email to