Closed gregmarr closed 2 weeks ago
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.