# HG changeset patch # User aziz # Date 1185532685 0 # Node ID 8f1790d16753da43bb4f05fce0b377c55db42c27 # Parent a88967db063bf0ac70a45307ae9d0640b174fd01 - Fix: added missing call to parseDeclaratorSuffx() in parseDeclaration. - Fixed parseForStatement(). diff -r a88967db063b -r 8f1790d16753 trunk/src/Parser.d --- a/trunk/src/Parser.d Fri Jul 27 10:12:02 2007 +0000 +++ b/trunk/src/Parser.d Fri Jul 27 10:38:05 2007 +0000 @@ -332,6 +332,7 @@ auto funcBody = parseFunctionBody(new FunctionBody); return new FunctionDeclaration(ident, type, null, funcBody); } + type = parseDeclaratorSuffix(type); } // It's a variable declaration. @@ -1703,7 +1704,8 @@ if (token.type != T.Semicolon) init = parseNoScopeStatement(); - require(T.Semicolon); + else + nT(); // Skip ; if (token.type != T.Semicolon) condition = parseExpression(); require(T.Semicolon);