C++ Logo

liaison

Advanced search

Re: [isocpp-wg14/wg21-liaison] Question re: P0085R3: Oo... adding a coherent character sequence to begin octal-literals

From: Jens Maurer <jens.maurer_at_[hidden]>
Date: Thu, 7 May 2026 21:12:01 +0200
On 5/7/26 16:13, Hubert Tong via Liaison wrote:
> Hi all,
>
> With respect to the deprecation of multi-digit octal literals using the plain 0 suffix, there is a culture (in WG 21) of expecting that deprecation leads to eventual removal. Was that clear in the discussion in April (https://github.com/sg22-c-cpp-standard-compatibility/sg-compatibility/blob/main/meetings/2026-04-24.md <https://github.com/sg22-c-cpp-standard-compatibility/sg-compatibility/blob/main/meetings/2026-04-24.md>)?

To my understanding, we were only talking about octal literals that are all-0,
i.e. "0" (not deprecated) vs. "00", "000", "0000" etc. , which would be
deprecated.

I do notice that C2y says

"Use of an unprefixed octal literal with digits other than 0 is an obsolescent feature."

so C2y deprecates 01 and 001 and 02 and 003 etc.
(And the C++ proposal does so, too.)

Jens

Received on 2026-05-07 19:12:03