Re: [PATCH] libcpp: Use constexpr for _cpp_trigraph_map initialization for C++14

2024-10-07 Thread Marek Polacek
On Wed, Sep 18, 2024 at 06:00:48PM +0200, Jakub Jelinek wrote: > Hi! > > The _cpp_trigraph_map initialization used to be done for C99+ using > designated initializers, but can't be done that way for C++ because > the designated initializer support in C++ as array designators are just > an extensio

[PATCH] libcpp: Use constexpr for _cpp_trigraph_map initialization for C++14

2024-10-07 Thread Jakub Jelinek
Hi! The _cpp_trigraph_map initialization used to be done for C99+ using designated initializers, but can't be done that way for C++ because the designated initializer support in C++ as array designators are just an extension there and don't allow skipping anything nor going backwards. But, we can