https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95008
--- Comment #2 from Manfred Schwarb <manfred99 at gmx dot ch> --- gcc.dg/analyzer/pr93382.c: Sorry, I can't reproduce, this test passes for me. gcc.dg/two-types-6.c: My bad, I forgot to mention this failure, as this test did not make sense to me. I could not determine what the actual intention of the test is. And the test nameing does not help either. And finally it fell through the cracks, bah... There should be a warning for the "struct f" line, no? At the moment there is no warning, and so my correction triggered the error. If one adds a semicolon, there is the expected "does not declare anything", but then there is no second error any more, so it fails, too. To silence it, one could simply do --- a/gcc/testsuite/gcc.dg/two-types-6.c +++ b/gcc/testsuite/gcc.dg/two-types-6.c @@ -2,6 +2,6 @@ /* { dg-options "-std=gnu89" } // suppress default -pedantic-errors */ struct s { - struct f {} /* { dg-warning "does not declare anything" } */ + struct f {} struct g {} x; /* { dg-error "expected ';', identifier or " } */ }; Or, to get both, one could do --- a/gcc/testsuite/gcc.dg/two-types-6.c +++ b/gcc/testsuite/gcc.dg/two-types-6.c @@ -2,6 +2,7 @@ /* { dg-options "-std=gnu89" } // suppress default -pedantic-errors */ struct s { - struct f {} /* { dg-warning "does not declare anything" } */ + struct e {}; /* { dg-warning "does not declare anything" } */ + struct f {} struct g {} x; /* { dg-error "expected ';', identifier or " } */ };