https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93857
--- Comment #4 from Roland Illig ---
In the case of "boolean context", there are a few other diagnostics that also
contain these exact words. Therefore the tests should at least have enough
words to distinguish these diagnostics from the others.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93857
--- Comment #3 from Roland Illig ---
(In reply to Jakub Jelinek from comment #2)
> testsuite/c-c++-common/Wint-in-bool-context.c
Thanks for pointing me to the test. My reasoning from
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93883#c4 applies
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93857
Jakub Jelinek changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
CC|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93857
--- Comment #1 from Roland Illig ---
I wrote a small example program, which I thought would trigger the diagnostic,
but it didn't do that in GCC 9.2.1.
int main(void) {
if (3 ? 4 : 5) {
return 1;
}
return 0;
}
gcc -Wall -Wex