https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96093
Drea Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
Status|WAITING |NEW
Keywords| |error-recovery
--- Comment #3 from Drea Pinski <pinskia at gcc dot gnu.org> ---
Reduced testcase:
```
void* cdParserDeclGlobalConst (void)
typedef struct parser_s
{}parser_t;
void f(void);
typedef unsigned char yup;
```
The C parser could definitely be better here. If while starting to parse an
old-syle parameter declarations the first token is a typedef, then assume there
was a missing `;`. That is what clang seens to do.
So confirmed.