You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the interesting bug and detailed report. I found the offending code, and the problem lies in the fact that parameter declarations are parsed as regular declarations (which allow a semicolon at the end). I can get a patch out pretty soon.
Describe the bug
Cppfront allows a semicolon at the end of each parameter, before the comma.
To Reproduce
Steps to reproduce the behavior:
Found from https://github.com/isidorostsa/RayTrayCpp2/blob/main/src/inc/camera.h2#L32, but much simpler:
https://cpp2.godbolt.org
Error for having a semicolon in the parameter list.
Success.
Additional context
I tried digging into the grammar to see where this semicolon is being allowed, but I couldn't find it.
The text was updated successfully, but these errors were encountered: