Closed maxrt101 closed 2 years ago
Commit dcb9276434 works, but next one (40cbf960a8) doesn't.
Seems that annotations (ASTAnnotation
) support somehow broke field assignment
Removed annotations support in b14236f9d8 (branch issue-28-remove-annotation-support)
If std::vector<std::string> m_annotations;
is removed from ff::ast::Node
- everything works
It seems that adding any field to ff::ast::Node
breaks rvalue
in parser
frame #5: 0x000000010004c734 ff`ff::Parser::rvalue(this=0x00007ffeefbff068, isReturnValueExpected=true) at parser.cc:705:25
It's this line:
return new ast::IntegerLiteral(previous());
Temporary fix - remove all support of ASTAnnotations. TODO: look into this in depth, maybe reimplement the annotations
Closing this for now (Fix implemented in: 3f33bc03a7)
Traces:
On MacOS 10.15.7 with clang 11.0.3 (lldb)
On ubuntu 20.04 with gcc 9.4.0
Code