Re: [C++ PATCH] Feature macros are long

2019-10-30 Thread Nathan Sidwell
On 10/30/19 12:36 PM, Jakub Jelinek wrote: On Wed, Oct 30, 2019 at 12:33:00PM -0400, Nathan Sidwell wrote: As discussed on IRC, this adds an L suffix to C++ feature macros, as specified by the std. I'd forgotten that in preprocessor-land, expressions are evaluated as longs anyway, but the user

Re: [C++ PATCH] Feature macros are long

2019-10-30 Thread Jakub Jelinek
On Wed, Oct 30, 2019 at 12:33:00PM -0400, Nathan Sidwell wrote: > As discussed on IRC, this adds an L suffix to C++ feature macros, as > specified by the std. I'd forgotten that in preprocessor-land, expressions > are evaluated as longs anyway, but the user might be trying to printf these > consta

[C++ PATCH] Feature macros are long

2019-10-30 Thread Nathan Sidwell
As discussed on IRC, this adds an L suffix to C++ feature macros, as specified by the std. I'd forgotten that in preprocessor-land, expressions are evaluated as longs anyway, but the user might be trying to printf these constants, or similar, where the type suffix is significant. Jakub, Thoma