------- Comment #4 from burnus at gcc dot gnu dot org 2009-12-10 19:52 ------- For "$" one should check whether it is allowed for the given target, cf. DOLLARS_IN_IDENTIFIERS (-> gcc/c-opts.c and dollars_in_ident in libcpp/).
For UCN (universal-character name), the ASCII characters $, @ and ` are allowed. Cf. C99 6.4.3 and libcpp _cpp_valid_ucn. One could also think of supporting UCN with character kind=4 (cf. PR36275 and PR 9449) - at least when -fextended-identifiers is specified - as vendor extension. As gfortran uses libcpp and and has full support of wide chars, it should not be difficult (but shall produce an error with -std=f2008). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38839