------- Comment #1 from burnus at gcc dot gnu dot org 2007-06-05 17:27 ------- The error message is ok as you have the string "\" + "0", which does not fit into a character(len=1) variable. bzero(4) contains "\", which is consistent with several compilers.
-fbackslash implies that C-style control character syntax is accepted, however, then \0 should be achar(0) not achar(92). Currently, gfortran accepts by default (unless -fno-backslash is used) "\n" as new line, but not \0 as achar(0) which is rather inconsistent. (g95 does the same; ifort offers -assume bscc, using which achar(0) is returned.) Work around (works with all ocompilers, Fortran 90 syntax): character(len=1), parameter :: charZero = achar(0) data bzero /'0', '.', '0', charZero, '0'/ -- burnus at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 GCC host triplet|powerpc-apple-darwin8.9.0 | Keywords| |diagnostic Last reconfirmed|0000-00-00 00:00:00 |2007-06-05 17:27:15 date| | Summary|Warning Message - incorrect |Backslash handling |? |inconsistent http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32223