PGI has reversed default option for escapes in literals compared to
flang/gfortan/Intel, note that and also that GNU has extension for "\"
interptetation:
$ cat f.f90 subroutine f() character, parameter :: x = "\" end
gfortran:
$ gfortran f.f90 -fsyntax-only -std=f2018 $ gfortran f.f90 -fsyntax-only -std=f2018 -fbackslash f.f90:2:33: 2 | character, parameter :: x = "\" | 1 Warning: Extension: backslash character at (1)
nvfortan:
$ nvfortran f.f90 -Msyntax-only NVFORTRAN-S-0026-Unmatched quote (f.f90: 2) 0 inform, 0 warnings, 1 severes, 0 fatal for f $ nvfortran f.f90 -Msyntax-only -Mbackslash
flang:
$ flang-new f.f90 -fsyntax-only $ flang-new f.f90 -fsyntax-only -fbackslash error: Could not scan f.f90 ./f.f90:2:31: error: Incomplete character literal character, parameter :: x = "\" ^^^