mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 11:48:04 +02:00
* fixed crash when calling a procvar with too many parameters
(mantis 8109) git-svn-id: trunk@5951 -
This commit is contained in:
parent
c0eb91ffc8
commit
38d54234d7
@ -1892,7 +1892,7 @@ implementation
|
||||
begin
|
||||
if assigned(pt) then
|
||||
current_filepos:=pt.fileinfo;
|
||||
CGMessage1(parser_e_wrong_parameter_size,symtableprocentry.realname);
|
||||
CGMessage1(parser_e_wrong_parameter_size,'<Procedure Variable>');
|
||||
goto errorexit;
|
||||
end;
|
||||
end
|
||||
|
@ -12,4 +12,5 @@ var
|
||||
|
||||
begin
|
||||
Proc(a, b);
|
||||
Proc(a, b, a, b);
|
||||
end.
|
||||
|
Loading…
Reference in New Issue
Block a user