[Bug c/93857] missing test for diagnostic: using integer constants in boolean context

2020-02-24 Thread roland.illig at gmx dot de
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.

[Bug c/93857] missing test for diagnostic: using integer constants in boolean context

2020-02-24 Thread roland.illig at gmx dot de
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

[Bug c/93857] missing test for diagnostic: using integer constants in boolean context

2020-02-24 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93857 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC|

[Bug c/93857] missing test for diagnostic: using integer constants in boolean context

2020-02-20 Thread roland.illig at gmx dot de
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