mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-06 01:28:04 +02:00

Don't check whether the expression queue is empty in the destructor in case there was an error. Also improved error messages (constant expression instead of variable expression expected). Resolves #39393
13 lines
152 B
ObjectPascal
13 lines
152 B
ObjectPascal
{ %fail }
|
|
|
|
program project1;
|
|
{$mode objfpc}{$H+}
|
|
function bug(s: string): string;
|
|
var
|
|
p:pointer=@s;//internal error 2014062901
|
|
begin
|
|
end;
|
|
|
|
begin
|
|
end.
|