[fpc-devel] Error: Global Generic template references static symtable

Sven Barth pascaldragon at googlemail.com
Sun Jan 10 11:58:58 CET 2021


Am 09.01.2021 um 16:21 schrieb Bart via fpc-devel:
>
>> The *why* is not important for users. Those that are interested can ask, just like you did.
> Then let me rephrase it.
> Error messages of the compiler normally point you in the right direction like:
>    qtest.lpr(367,3) Fatal: Syntax error, ";" expected but "identifier
> TESTINCCAP" found
> It's sort of obvious there is a missing semicolon.
>
> OTOH: "Global Generic template references static symtable" only means
> something to me (as an fpc user) if I know what a static symtable is
> (I assume this is an internal datastructure in the compiler).
> Since I have no clue, I have absolutely no idea how to fix that error.
> In my case I commented out all lines in the given procedure and
> uncommented them one by one to finally get at the offending line in
> question.
> I then made an educated guess that (sine accessing functions like
> Format() is OK), it must have something to do with the declaration of
> the "Min()" function.
>
> It would have helped if the error message was a little less cryptic,
> and/or if it pointed to the line that caused the error in the first
> place.
I have clarified the message a bit.

Displaying the message at the correct location would be more involved... 
you might want to open a bug report for that so that it's remembered 
somewhere, but it's definitely going to be a low priority one.

Regards,
Sven


More information about the fpc-devel mailing list