segfault on producing an action for a non terminal without type
zosrothko opened this issue · 0 comments
zosrothko commented
Hi
Compilation of the below snippet by btyacc fails with a segfault because the non terminal RootComponentTypeList has no declared type.
%union {
char* tval;
char* tlist;
}
%type <tval> ComponentTypeLists
%type <tlst> ComponentTypeList
%%
ComponentTypeLists
: RootComponentTypeList {
$$ = new SequenceType($1, false, nullptr);
}
;
RootComponentTypeList
: ComponentTypeList
;