Closed Infernio closed 2 years ago
Yep thats the correct fix. Heres a diff of a patch I made when experimenting with the new release in a different project: https://github.com/SystemRDL/systemrdl-compiler/commit/d3e31c366fc938fee96b60811216705f5635c29a I just haven't had the chance to port it over to this tool yet.
Also, you'll have to adjust the setup.py to use C++17: https://github.com/SystemRDL/systemrdl-compiler/blob/dev/antlr-4.10.1/setup.py#L32-L35
I also just encountered this issue, I will add this fix to my branch
The change is included in https://github.com/amykyta3/speedy-antlr-tool/pull/13 And I confirm they are the only things to change to use 4.10, which makes the C++ version even faster.
Fixed
ANTLR 4.10 switched to
std::any
, which seems to be causing these compilation failures:I altered the generated files manually to fix this for now, replacing the
as()
calls withstd::any_cast
s, but I'm not a C++ expert so I have no idea if that's the right fix :woman_shrugging: