------- 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

Reply via email to