Re: [PATCH] libcpp: Fix ICE with -Wtraditional preprocessing [PR101638]

2021-08-12 Thread Jakub Jelinek via Gcc-patches
On Thu, Aug 12, 2021 at 10:46:23AM -0400, Jason Merrill wrote: > > --- libcpp/expr.c 2021-05-07 10:34:46.345122608 +0200 > > +++ libcpp/expr.c 2021-08-12 09:54:01.837556365 +0200 > > @@ -783,13 +783,13 @@ cpp_classify_number (cpp_reader *pfile, > > /* Traditional C only accepted the 'L'

Re: [PATCH] libcpp: Fix ICE with -Wtraditional preprocessing [PR101638]

2021-08-12 Thread Jason Merrill via Gcc-patches
On 8/12/21 3:57 AM, Jakub Jelinek wrote: Hi! The following testcase ICEs in cpp_sys_macro_p, because cpp_sys_macro_p is called for a builtin macro which doesn't use node->value.macro union member but a different one and so dereferencing it ICEs. As the testcase is distilled from contemporary gli

[PATCH] libcpp: Fix ICE with -Wtraditional preprocessing [PR101638]

2021-08-12 Thread Jakub Jelinek via Gcc-patches
Hi! The following testcase ICEs in cpp_sys_macro_p, because cpp_sys_macro_p is called for a builtin macro which doesn't use node->value.macro union member but a different one and so dereferencing it ICEs. As the testcase is distilled from contemporary glibc headers, it means basically -Wtraditiona