compiler: regenerate parameter list in tprocvardef.getcopy (fixes compiler crash, issue #0025077)

git-svn-id: trunk@25561 -
This commit is contained in:
paul 2013-09-25 03:28:14 +00:00
parent ce6c8c1b59
commit c22c364f43
3 changed files with 9 additions and 0 deletions

1
.gitattributes vendored
View File

@ -13593,6 +13593,7 @@ tests/webtbs/tw2504.pp svneol=native#text/plain
tests/webtbs/tw25054a.pp svneol=native#text/pascal
tests/webtbs/tw25054b.pp svneol=native#text/pascal
tests/webtbs/tw25059.pp svneol=native#text/pascal
tests/webtbs/tw25077.pp svneol=native#text/pascal
tests/webtbs/tw2514.pp svneol=native#text/plain
tests/webtbs/tw2525.pp svneol=native#text/plain
tests/webtbs/tw2536.pp svneol=native#text/plain

View File

@ -5474,6 +5474,7 @@ implementation
tprocvardef(result).savesize:=savesize;
{ create paralist copy }
calcparas;
tprocvardef(result).paras:=tparalist.create(false);
tprocvardef(result).paras.count:=paras.count;
for j:=0 to paras.count-1 do

7
tests/webtbs/tw25077.pp Normal file
View File

@ -0,0 +1,7 @@
{ %NORUN}
program tw25077;
TYPE AnyName = TYPE PROCEDURE (A : INTEGER);
begin
end.