------- Comment #1 from tobias dot burnus at physik dot fu-berlin dot de 2006-04-25 17:24 ------- Post scriptum: I actually see two bugs here:
(a) for static format strings, the test should be done at the compile time (possibly also for c = '(''n'')'; write(*,c) n ) -> see NAG compiler (b) for dynamically created format strings, I think one should "crash" with a meaningful error message. At least that is what ifort, g95, NAG and pgf95 do. I like the error message of g95: --------------- At line 5 of file test.f90 (Unit 6) Fortran runtime error: Exhausted data descriptors in format ('n') --------------- (other wording in NAG f95: "No data edit descriptor in tail of format specification after reversion" [and no line number]) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27304