https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102726
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2021-10-13
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
CC| |msebor at gcc dot gnu.org
--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed with the test case below:
$ cat pr102726.C && gcc -S -Wall pr102726.C
void f (bool);
enum { E0, E1, E2 };
void f (void)
{
f (E0); // missing warning
f (E1); // missing warning
f (E2); // -Wint-in-bool-context
}
pr102726.C: In function ‘void f()’:
pr102726.C:9:6: warning: enum constant in boolean context
[-Wint-in-bool-context]
9 | f (E2); // -Wint-in-bool-context
| ^~