https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99079
--- Comment #6 from CVS Commits ---
The master branch has been updated by Jakub Jelinek :
https://gcc.gnu.org/g:70099a6acf5169eca55ef74549fb64de14e668f0
commit r11-7242-g70099a6acf5169eca55ef74549fb64de14e668f0
Author: Jakub Jelinek
Date: Mo
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99079
Jakub Jelinek changed:
What|Removed |Added
Attachment #50176|0 |1
is obsolete|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99079
--- Comment #4 from Jakub Jelinek ---
Ah, except we introduce UB into the program because (1 << var) - 1 when var is
31 will be INT_MIN - 1. I think we should do the subtraction of 1 in utype
then.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99079
Jakub Jelinek changed:
What|Removed |Added
Attachment #50175|0 |1
is obsolete|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99079
--- Comment #2 from Jakub Jelinek ---
Created attachment 50175
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50175&action=edit
gcc11-pr99079.patch
Untested fix.
The problem is that the tree_nop_conversion_p (type, TREE_TYPE (@3))
test act
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99079
Jakub Jelinek changed:
What|Removed |Added
CC||jakub at gcc dot gnu.org
Sta
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99079
--- Comment #1 from Martin Liška ---
I forgot to mention:
$ g++ x.cpp -O && ./a.out
arr: 602669924
Aborted (core dumped)