> On 2 Dec 2025, at 05:01, Sandra Loosemore <[email protected]> wrote:
>
> On 12/1/25 06:45, Iain Sandoe wrote:
>> Changes since v1
>> - fixed a merge error in the removal of C++2a code.
>> - rebased onto r16-5785-g3b30d09ac7bbf8 (includes change to default to
>> C++20).
>> --- 8< ---
>> The C++26 contracts design bears little relationship with the abandoned
>> C++2a one.
>> While we have, where possible, attempted to re-use code, the underlying
>> syntax and
>> implementation are divergent.
>> We have thus decided to represent this as a new implementation, after first
>> removing
>> the old one. Trying to review the patches as changes between two different
>> designs
>> would be quite confusing.
>> gcc/c-family/ChangeLog:
>> * c-cppbuiltin.cc (c_cpp_builtins): Remove C++2a-specific
>> feature macros.
>> * c.opt: Remove C++2a-specific flags.
>> [snip]
>
> I don't see anything here that removes the documentation for the removed
> options. I also saw that some other patches in this series added options,
> with likewise no documentation updates. Are the new options really identical
> to the old ones?
Other than ‘-fcontracts’, which does have the same meaning, there should be no
overlap.
> Or did you just forget?
Yes, we forgot - and will address at the next iteration. It’s very unlikely
that the patches would be applied split up as they are presented (that was done
for review purposes), but we should ensure that the removals (first patch) and
incremental additions have the relevant doc changes.
thanks for catching this,
Iain
>
> -Sandra