Hi Bruno, On 4/28/24 2:11 AM, Bruno Haible wrote: > Correct. I added a comment, because the situation in ISO C and POSIX has > changed, not too long ago.
It took me a bit to understand what was happening. Thanks for the explination. I'm glad the standard has changed to accomodate with glibc and others already did. > Perfect! Thank you. You also found out in which corner of GCC the faulty > optimization lies! Yeah, I had a fun time exploring some of gcc. :) Since the bug exists from GCC 7.1 ("starts from" on the report) to GCC 15, should those two test cases be updated? Maybe an '#if ...' or even just a comment so it isn't reported as a new bug in the future. Thanks. Collin