Related to resolved bug 30278. The handling of backslash has fundamentally changed since 3.2.2 and earlier. Specifically it USED to allow inserting a null at the end of a string (CRITICAL for communicating with C) and I see now that there is a list of honored excapes and null (\0) seems not to be one of them. The still large Fortran part of our application (55000 lines) contains nearly a thousand instances of \0 in strings needed by newer C functions and appending //char(0) everywhere is decidedly ugly as well as expensive. I believe this should be considered a bug.
-- Summary: backslash zero no longer writes null in string Product: gcc Version: 4.1.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jhettmer at doprad dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32814