Re: [PATCH] c++, libcpp: Allow some left shifts in the preprocessor [PR119391]

2025-04-04 Thread Joseph Myers
On Fri, 4 Apr 2025, Jason Merrill wrote: > Incidentally, does anyone know the status of the parallel WG14 proposal > (https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2218.htm)? Signed integer types are two's complement in C23. That did not involve any changes to the rules on shifts; it was pu

Re: [PATCH] c++, libcpp: Allow some left shifts in the preprocessor [PR119391]

2025-04-04 Thread Jason Merrill
On 3/21/25 8:33 PM, Jakub Jelinek wrote: Hi! The libcpp left shift handling implements (partially) the C99-C23 wording where shifts are UB if shift count is negative, or too large, or shifting left a negative value or shifting left non-negative value results in something not representable in the

C++ patch ping (Re: [PATCH] c++, libcpp: Allow some left shifts in the preprocessor [PR119391])

2025-03-31 Thread Jakub Jelinek
Hi! I'd like to ping the https://gcc.gnu.org/pipermail/gcc-patches/2025-March/678863.html patch. Thanks. On Sat, Mar 22, 2025 at 01:33:51AM +0100, Jakub Jelinek wrote: > The libcpp left shift handling implements (partially) the C99-C23 > wording where shifts are UB if shift count is negative, or