[Bug fortran/38839] BIND(C): Allow non-digit/underscore/alphabetic binding names
burnus at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Dec 10 19:52:00 GMT 2009
------- 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
More information about the Gcc-bugs
mailing list