Fix crash with malformed arguments (bug 6176).

This commit is contained in:
David Anderson 2014-07-12 09:31:51 -07:00
parent c47cfa6fa8
commit 21d3a7f93e
3 changed files with 9 additions and 0 deletions

View File

@ -6652,6 +6652,10 @@ static void statement(int *lastindent,int allow_decl)
}
if (is_decl) {
if (!allow_decl) {
error(3);
return;
}
lexpush();
autozero = TRUE;
lastst = tNEW;

View File

@ -0,0 +1,4 @@
stock void Function( float array1[ 3 ] float array2[ 3 ] )
{
}

View File

@ -0,0 +1 @@
(1) : error 001: expected token: ")", but found "-identifier-"