Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: patricksung at gmail dot com
Target Milestone: ---
Created attachment 35985
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35985&action=edit
Intermediate of the C sou
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66875
--- Comment #3 from Patrick S. ---
argh...
my mistake to not check the termination condition is actually matching the size
of the prot_short_str[] array. fixing that by properly calculating the array
size would fix the compilation now. Thanks!
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66875
--- Comment #4 from Patrick S. ---
(In reply to Marek Polacek from comment #2)
> Yes, please try -fsanitize=undefined. This looks like an invalid.
I am guessing this would allow the compiler to detect the loop is undefined and
would generate wa