Fix crash with malformed arguments (bug 6176).
This commit is contained in:
@@ -6652,6 +6652,10 @@ static void statement(int *lastindent,int allow_decl)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (is_decl) {
|
if (is_decl) {
|
||||||
|
if (!allow_decl) {
|
||||||
|
error(3);
|
||||||
|
return;
|
||||||
|
}
|
||||||
lexpush();
|
lexpush();
|
||||||
autozero = TRUE;
|
autozero = TRUE;
|
||||||
lastst = tNEW;
|
lastst = tNEW;
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
stock void Function( float array1[ 3 ] float array2[ 3 ] )
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
(1) : error 001: expected token: ")", but found "-identifier-"
|
||||||
Reference in New Issue
Block a user