------- Comment #15 from burnus at gcc dot gnu dot org 2009-12-05 15:01 ------- (In reply to comment #14) > > According to a note I spotted on clf , reading and writing reals with BOZ is > > invalid, so what we are doing here is an extension. > Do you have a pointer?
I have the following: "10.6.1 Numeric editing" "The I, B, O, Z, F, E, EN, ES, D, and G edit descriptors may be used to specify the input/output of integer, real, and complex data." [...] "(6) On output, with I, B, O, Z, and F editing, the specified value of the field width w may be zero. In such cases, the processor selects the smallest positive actual field width that does not result in a field filled with asterisks. The specified value of w shall not be zero on input." Thus it looks valid also for non-integers. However, going on one finds that the B, O, & Z edit descriptors are only mentioned in "10.6.1.1 Integer editing" whereas "10.6.1.2 Real and complex editing" starts with "The F, E, EN, ES, and D edit descriptors specify the editing of real and complex data. [...] The G edit descriptor also may be used to edit real and complex data." Thus, combining the two, using BOZ edit descriptors is invalid in F95/F2003. How about F2008? The first quote is essentially the same but one finds there: "10.7.2.3 Real and complex editing": "The G, B, O, and Z edit descriptors also may be used to edit real and complex data (10.7.5.2.2, 10.7.2.4)." -- burnus at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2009-12-05 15:01:04 date| | Summary|BOZ format does not support |[F2008] BOZ format does not |reading large kind reals |support reading large kind | |reals http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41711