Describe the bug
When trying to initialize a member variable of an undefined type with a REF call on the right hand side, the compiler will overflow it's stack while trying to validate that the pointer types match.
To Reproduce
PROGRAM mainProg
VAR
refToUndefinedType: REF_TO Ty := REF(whatsInHereDoesntMatter);
END_VAR
END_PROGRAM
Expected behavior
A diagnostic to tell the user that the declared type or reference could not be resolved.
Additional context
This happens in rusty::typesystem::is_same_type_class.
Describe the bug When trying to initialize a member variable of an undefined type with a
REF
call on the right hand side, the compiler will overflow it's stack while trying to validate that the pointer types match.To Reproduce
Expected behavior A diagnostic to tell the user that the declared type or reference could not be resolved.
Additional context This happens in
rusty::typesystem::is_same_type_class
.