This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch, fortran] PR30481 Accepts namelist-group object with assumed character length


Jerry DeLisle wrote:
The attached patch developed by Paul Thomas adds a check for assumed size character variables in namelist and issues an error.

I have reviewed and regression tested with make -k check-fortran on x86-64-linux-gnu.

I plan to commit this for Paul within a day or so to trunk and then to 4.2 in a few more days.

I seem to recall a discussion of this on comp.lang.fortran recently, where it was mentioned that this restriction was a F95 thing that was relaxed in F2003. Unfortunately, I can't seem to find the comment again, but it looks to me like the language in the standard does relax the restriction.


If that's true, I'd suggest that this should be a -std=f95 thing, not an absolute error.

- Brooks


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]