This is the mail archive of the gcc-bugs@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]

[Bug fortran/41678] Format label as second item in io control list is rejected



------- Comment #1 from dominiq at lps dot ens dot fr  2009-10-12 07:19 -------
The F95 standard says:

The F, E, EN, ES, and D edit descriptors specify the editing of real and
complex data. 
An input/output list item corresponding to an F, E, EN, ES, or D edit
descriptor shall be real or complex. 
      ^^^^^^^^^^^^^^^^^                                                        
                                       ^^^^^^^^^^^^^^^^^^
The G edit descriptor also may be used to edit real and complex data
(10.5.4.1.2).

So I think gfortran is right to reject

read(unit=2, 100) i

100 format (f10.7)

even if my reading of the "shall", is that it is not a "constraint" for the
compiler but for the user.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41678


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