http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54679
kargl at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P5 CC| |kargl at gcc dot gnu.org Severity|normal |trivial --- Comment #2 from kargl at gcc dot gnu.org 2012-09-23 16:24:01 UTC --- (In reply to comment #1) > Please reduce the severity to trivial, and change it to "Confusing > diagnostic"! It's my error, at root, but gfortran could do better. > > I had forgotten the relevant constraint (C1006 in Fortran 2003). > However, the syntax rule R1005 on the same page specifies that a > width is mandatory for the L descriptor, so the actual error is > that a width of zero is erroneous. I agree that the error message is confusing. First, the F2008 constraint is C1006 (R1008) w shall be zero or positive for the I, B, O, Z, F, and G edit descriptors. w shall be positive for all other edit descriptors. Second, we have 10.8.5 P editing The k P edit descriptor temporarily changes (9.5.2) the scale factor for the connection to k . The scale factor affects the editing done by the F, E, EN, ES, D, and G edit descriptors for numeric quantities. So P editing does not even apply to the L descriptor.