Skip to content

Conversation

Nielsbishere
Copy link
Contributor

#6599

The issue is that it tries to parse a register definition as a semantic and the remainder (space1) will be unrecognized and completely mess everything up.
Instead, I still try to parse it as a register and give the errors you'd get if it was a real register. Of course it isn't a register, so the register assignment will get dropped and an error gets given instead:
Syntax similar to : register() was used but unexpected keyword 'registers' was used instead.

…'t segfault the compiler anymore. Instead, it assumes that when you write : MYTEST() that you're intending to make it into a register, will parse the register the normal way to skip invalid syntax and will show an error that you shouldn't do that.
Copy link
Contributor

github-actions bot commented Sep 3, 2025

✅ With the latest revision this PR passed the C/C++ code formatter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: New

Development

Successfully merging this pull request may close these issues.

1 participant