https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83282
Dominique d'Humieres <dominiq at lps dot ens.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P5 Status|UNCONFIRMED |NEW Last reconfirmed| |2017-12-05 Ever confirmed|0 |1 Severity|normal |enhancement --- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- Confirmed from 4.8 up to trunk (8.0). write(*,'(*("["a,"]":))')array or write(*,'(*("["a5"]":))')array give the expected result. Reduced test case write(*,'(aa)') "ab", "bc" write(*,'(a"bc")') "ab" write(*,'(a"cd"a)') "ab", "bc" end gives abbc ab abc i.e., the problem seems to occur when an 'a' descriptor is immediately followed by a string.