Title: Re: internal error 2014062901
Post by: Jonas Maebe on October 03, 2021, 03:05:29 pm
While it shouldn't cause an internal error, it is an invalid expression. The reason is that @s is not constant (it's the address on the stack of the ansistring, which can be different every time the function gets called). At least FPC has no support for initialising variables with non-constant expressions.
Title: Re: internal error 2014062901
Post by: engkin on October 03, 2021, 07:52:11 pm
Yes, it is a faulty code. Just the internal error should not happen.
Reported as issue #39393 (https://gitlab.com/freepascal.org/fpc/source/-/issues/39393)