VIP10 - Compiler Core Dump
Posted: 20 May 2021 1:27
I'm making use of "Object expressions". I ran into the following which causes a compiler core dump. I don't know if this information will be enough. It will take me a bit to isolate this into a separate simple example if it is needed since "movelist_" is a custom highspeed vector{@Type} object. And because this is a new language feature, it could be that I'm doing something wrong. I allowed the IDE to send one of the core dumps to PDC earlier this evening.
Here is the code that causes the compiler dump:
Moving the "isErroneous" call outside of the object expression will resolve the issue:
Thanks,
Craig Hoibakk
Here is the code that causes the compiler dump:
Code: Select all
% -------------------------- PERFT -------------------------------
clauses
get_perft() = Object :-
%if isErroneous(movelist_) then
% %calc_board()
%end if,
Object =
implement : perft
clauses
perft(Depth, Divide) = Count :-
% COMPILER ERROR MESSAGE: "Database domain expected 'vector{@Type}'"
if isErroneous(movelist_) then
%calc_board()
end if,
doDivide := Divide,
Count = 0.
clauses
new() :- allmoves := true.
end implement.
Code: Select all
% -------------------------- PERFT -------------------------------
clauses
get_perft() = Object :-
if isErroneous(movelist_) then
%calc_board()
end if,
Object =
implement : perft
clauses
perft(Depth, Divide) = Count :-
% COMPILER ERROR MESSAGE: "Database domain expected 'vector{@Type}'"
%if isErroneous(movelist_) then
% %calc_board()
%end if,
doDivide := Divide,
Count = 0.
clauses
new() :- allmoves := true.
end implement.
Craig Hoibakk