This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [libcpp] Issue a pedantic warning for UCNs outside UCS codespace
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Eric Botcazou <ebotcazou at adacore dot com>
- Cc: Florian Weimer <fw at deneb dot enyo dot de>, <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 25 Sep 2019 23:37:33 +0000
- Subject: Re: [libcpp] Issue a pedantic warning for UCNs outside UCS codespace
- Ironport-sdr: 860EDEIXQbxivIcA15ZqKrCY/gCrjrD8i2THbOh0epBXhMqFcg57ZXh3Af7hbWrTU+usktjg9m BeUQsZVfWpsKfha7MrbfPeMohZB/VlTZwSw+HcPr6u43SkfJc+Ddd3GYSMxrg+slVLqGrg8stB lcUvLokCFDpUp0ECah0g4/sVhVv2KaOPrK7mtnRdbNG3a9WgaiGfhr0JQ6r+2rYLwae8rJecYq sC/XUXiTje8h4xSDgoccCU0LucD+ZjdCCaldyBXGnWbb+W4g0C8+CSDLooMtXaIOwoT26KWu2Z WoI=
- Ironport-sdr: 5JGA/TYifGCSWAQGqGvKP8QwCeju9r4OveXduMrFLtwgMmNSU2e9iwZGkK7WZ1lfz2N485NCVq oDA6HtdYVYAK7jtpDMnroh/v5lBaI5+BhUVOUESLEkvEGnKB3tdHoqxG5Kh3bOhm7b3JcUBc4U KnWL1s3ydX+CqL3rqJICZ7CrXwJXS2M6WhyaWmyBCK05h9kcuSTYC44q3Ce25JV9m4sKPtnnNn qloeXlsRuk1Hez6Fifu6cwG1m++24eIO5mLXFk3viUSo7oAAfCS8VWqSqFn6sZS+6t1c1/4ok+ HJ8=
- References: <46160747.VyTTuRmQVZ@polaris> <878sqdy1ti.fsf@mid.deneb.enyo.de> <2049615.ZfgRD7MDag@polaris>
On Tue, 24 Sep 2019, Eric Botcazou wrote:
> > I think this has to depend on the C standards version. I think each C
> > standard needs to be read against the edition of ISO 10646 current at
> > the time of standards approval (the references are sadly not
> > versioned, so the version is implied). Early versions of ISO 10646
> > definitely do not have the codespace restriction you mention.
>
> Note the already existing hardcoded check in ucn_valid_in_identifier though.
No C or C++ standard version allows characters outside that range in
identifiers, so that check is independent of the ISO 10646 version being
used.
--
Joseph S. Myers
joseph@codesourcery.com