https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100402

--- Comment #6 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Your testcase does not compile with the C compiler:

pr100402.c:4:8: error: unknown type name 'bool'
    4 | static bool stop = false;
      |        ^~~~
pr100402.c:4:20: error: 'false' undeclared here (not in a function)
    4 | static bool stop = false;
      |                    ^~~~~
pr100402.c: In function 'func':
pr100402.c:13:10: error: 'true' undeclared (first use in this function)
   13 |   stop = true;
      |          ^~~~
pr100402.c:13:10: note: each undeclared identifier is reported only once for
each function it appears in

Compiling it with the C++ compiler works for me:

$ g++ -o pr100402 pr100402.C -O
$ ./pr100402.exe 
$

Reply via email to