Re: [PATCH] libcpp: Fix up #__VA_OPT__ handling [PR103415]

2021-11-29 Thread Jason Merrill via Gcc-patches
On 11/26/21 04:33, Jakub Jelinek wrote: Hi! stringify_arg uses pfile->u_buff to create the string literal. Unfortunately, paste_tokens -> _cpp_lex_direct -> lex_number -> _cpp_unaligned_alloc can in some cases use pfile->u_buff too, which results in losing everything prepared for the string lit

[PATCH] libcpp: Fix up #__VA_OPT__ handling [PR103415]

2021-11-26 Thread Jakub Jelinek via Gcc-patches
Hi! stringify_arg uses pfile->u_buff to create the string literal. Unfortunately, paste_tokens -> _cpp_lex_direct -> lex_number -> _cpp_unaligned_alloc can in some cases use pfile->u_buff too, which results in losing everything prepared for the string literal until the token pasting. The followi