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: Florian Weimer <fw at deneb dot enyo dot de>
- Cc: Eric Botcazou <ebotcazou at adacore dot com>, <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 25 Sep 2019 23:19:30 +0000
- Subject: Re: [libcpp] Issue a pedantic warning for UCNs outside UCS codespace
- Ironport-sdr: aXx3NkiyqlFVepzEW0hhc2zkMEsELJ1IshbC+5XuH8HyxA0hvA/GnwopKeHO9WGZaiDBEnxn4B COvrNtvoSvfyrERUXNN9bLkKFyHVxlYy6GHaQXeHWqvhXrwckPZET7gh4ZYXkIxwH7SydvWnbL DAzKJ+VEVZhqhLdIvqd2hMbtkTEnvmRpOL5JG2mIbqvaLLvGCrXnSb5To2JybMY8tnU1eUCsDL Kj5QzcUBHKshC+RIUF1US8fRuxP4gFBgJhfN9A3qqIuEiSdZYHz4pfEGF9Z8GTCo9iqWlgnU+H Hcs=
- Ironport-sdr: wRLE++Y5tVh8XiepuZOUwIJP3WW0PlN33i7Yg7dhJLZXZilAk9RWZZOf8aZe09rA7WbmevIVKw ZFknedkQfD+i6xte6jLxcg5K6Ef2skaaROmL+sC58ae10bUmaATswf/q/jEAlrCDldfqrxTqY7 xkxRQCn+JuyA9W69/pAhH6sUygnHE44N8iTr6mGWlf9gnGq2lfpf7D5TFT2yjuMxGDH2T1u+Si eh+a9e+8sJ2IKvPt0LnahkekTSzWAOu4WXqNRvd2bCy8NO/yiBBJDar+GAknF2oG8bfyL5B7F2 y7k=
- References: <46160747.VyTTuRmQVZ@polaris> <878sqdy1ti.fsf@mid.deneb.enyo.de>
On Tue, 24 Sep 2019, Florian Weimer 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.
Undated references aren't implicitly dated to the version when the
standard was published. The ISO/IEC Directives, Part 2 (Principles and
rules for the structure and drafting of ISO and IEC documents) (2018
edition, subclause 10.4)
<https://www.iso.org/sites/directives/current/part2/index.xhtml#_idTextAnchor122>
say:
Undated references may be made:
* only to a complete document;
* if it will be possible to use all future changes of the referenced
document for the purposes of the referring document;
* when it is understood that the reference will include all amendments
to and revisions of the referenced document.
I think that's clear that the latest version at the time the standard is
used applies (so if the document in the undated normative reference is
revised, that effectively changes the requirements of the standad version
referencing it).
--
Joseph S. Myers
joseph@codesourcery.com