Eisenwave / cdecl-plus

Similar to cdecl.org, but with broader support for language features. Static web page which supports file protocol. Parsing and to-prose conversion happen in the front-end, resulting in instant feedback.
https://cdecl.plus/
MIT License
32 stars 4 forks source link

No diagnostic for redefinition of symbols #25

Open Eisenwave opened 1 year ago

Eisenwave commented 1 year ago

cdecl+ Input

size_t size_t

Expected Prose

Error: redefinition of size_t as different kind of symbol

Actual Prose or Error

Declare size_t as size_t

Additional Context

Any use of a _t type as a typedef-name should register that symbol as a known type, and using the same symbol as an identifier in any context should then be illegal.