Rename C23 keyword

Started by Peter Eisentrautover 1 year ago3 messageshackers
Jump to latest
#1Peter Eisentraut
peter_e@gmx.net

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.)

Attachments:

0001-Rename-C23-keyword.patchtext/plain; charset=UTF-8; name=0001-Rename-C23-keyword.patchDownload+10-11
#2Robert Haas
robertmhaas@gmail.com
In reply to: Peter Eisentraut (#1)
Re: Rename C23 keyword

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

#3Peter Eisentraut
peter_e@gmx.net
In reply to: Robert Haas (#2)
Re: Rename C23 keyword

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