------- Comment #5 from sgk at troutmask dot apl dot washington dot edu 2009-08-30 18:54 ------- Subject: Re: NAMELIST input with just a comment ("&NAME ! comment \") fails
On Sun, Aug 30, 2009 at 06:15:07PM -0000, jvdelisle at gcc dot gnu dot org wrote: > > Strictly speaking, Steve, I think you are correct. > > I have not finished my review of the standard. This is the first time I have > seen namelist used like this for command line input. I suspect because it > allows one to try many variations easily it will be a useful quick test tool. > The embedded comment seems natural and in our code base we have a comment > asking, should we allow '!' as a separator as an extension. We have thought > about this issue before. > > I am going to give it some thinking time before doing anything here. > Allowing a comment within a namelist to be the only entity on a line seems to be a logical extension to add. But, to claim that gfortran has an error seems to be erroneous. This extension should probably issue a warning with -std=f95 or f2003. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41192