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] PR19262 more than thirty-nine continuation lines should issue a std-warn


The F95 standard 3.3.1.4 says the number shall not exceed 39. F2003 changes this to 255. I have set the limit to default to 255. If - pedantic is given, it is set to 39.

As others have already said, it's probably not the behaviour we want. We'd like the limit to be 39 if -std=f95, 255 if -std=f2003, and probably no limit if -std=gnu, don't we? Furthermore, an error should be issued if -pedantic and a warning otherwise.


I think it would be best if you used the gfc_notification_std function, which returns SILENT, WARNING or ERROR. See error.c:

/* Whether, for a feature included in a given standard set (GFC_STD_*),
   we should issue an error or a warning, or be quiet.  */


FX



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