https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90917
--- Comment #3 from Martin Sebor ---
The solution for pr83431 doesn't handle the case in comment #2 but hopefully a
future improvement (in GCC 11) will.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90917
Martin Sebor changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90917
--- Comment #1 from Dávid Bolvanský ---
char f(void) {
char* s = ... ;
if (strcmp(global_s, s) == 0) return global_s[0];
return '-';
}
-->
char f2(void) {
char* s = ... ;
if (strcmp(global_s, s) == 0) return s[0];
return '-';
}