https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107541
Franck Behaghel <franckbehaghel_gcc at protonmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |franckbehaghel_gcc@protonma
| |il.com
--- Comment #1 from Franck Behaghel <franckbehaghel_gcc at protonmail dot com>
---
Created attachment 53839
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53839&action=edit
reduce testcase
Confirmed on master ( 3ad2167bbac8ae83b1e91305b105ab5287bdac55 )
It might be related with integer promotion on char type with ~ and / .
A reduce testcase.
gcc main.cpp -O2 ; ./a.out ;echo "*****" ; gcc main.cpp ; ./a.out
b : 128
*****
b : 129