Thread: Rename C23 keyword

Rename C23 keyword

From
Peter Eisentraut
Date:
constexpr is a keyword in C23.  Rename a conflicting identifier for
future-proofing.

Obviously, C23 is way in the future, but this is a hard error that 
prevents any further exploration.  (To be clear: This only happens if 
you explicitly select C23 mode.  I'm not aware of a compiler where this 
is the default yet.)


Attachment

Re: Rename C23 keyword

From
Robert Haas
Date:
On Tue, Aug 6, 2024 at 4:04 AM Peter Eisentraut <peter@eisentraut.org> wrote:
> constexpr is a keyword in C23.  Rename a conflicting identifier for
> future-proofing.
>
> Obviously, C23 is way in the future, but this is a hard error that
> prevents any further exploration.  (To be clear: This only happens if
> you explicitly select C23 mode.  I'm not aware of a compiler where this
> is the default yet.)

This seems fine.

--
Robert Haas
EDB: http://www.enterprisedb.com



Re: Rename C23 keyword

From
Peter Eisentraut
Date:
On 06.08.24 16:00, Robert Haas wrote:
> On Tue, Aug 6, 2024 at 4:04 AM Peter Eisentraut <peter@eisentraut.org> wrote:
>> constexpr is a keyword in C23.  Rename a conflicting identifier for
>> future-proofing.
>>
>> Obviously, C23 is way in the future, but this is a hard error that
>> prevents any further exploration.  (To be clear: This only happens if
>> you explicitly select C23 mode.  I'm not aware of a compiler where this
>> is the default yet.)
> 
> This seems fine.

committed