On 07.12.25 20:45, Tom Lane wrote:
Hmm, this only fixes the one use-case. Admittedly we have only one use-case, but as soon as we have another we'll have a new problem. How about instead modifying the macro? Maybe something like this in c.h (untested):#ifdef __cplusplus #undef typeof #define typeof decltype #define HAVE_TYPEOF 1 #endif
AFAICT, both gcc and clang support typeof in C++ mode as well. So this kind of renaming could be confusing.
