https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92325
--- Comment #3 from anlauf at gcc dot gnu.org --- (In reply to Bernd Edlinger from comment #2) > But, I admit, when I initially learned fortran, F77 was still brand new. > Can someone explain to me what is this program is supposed to do? Well, character(kind=1) is the default character kind (1-byte ASCII) that you know from F77. Fortran 2003 added support for other character sets, such as ISO_10646, which uses 4 bytes/character and is therefore represented by kind=4 in gfortran. 4_'ABC' is the literal "ABC" in this character set, etc. The program in comment#0 works just fine. It prints AABABC.