# HG changeset patch # User aziz # Date 1183892585 0 # Node ID b535016f8c3f41436ee57069e344220636750f8c # Parent 511a1aa2589639b8969ee5cd83c30c5a5f2b841e - DeclaratorSuffix must be parsed after an Identifier. diff -r 511a1aa25896 -r b535016f8c3f trunk/src/Parser.d --- a/trunk/src/Parser.d Sun Jul 08 10:14:00 2007 +0000 +++ b/trunk/src/Parser.d Sun Jul 08 11:03:05 2007 +0000 @@ -817,7 +817,7 @@ Type parseType() { - return parseDeclaratorSuffix(parseBasicType2(parseBasicType())); + return parseBasicType2(parseBasicType()); } Type parseBasicType() @@ -946,17 +946,18 @@ Type parseDeclarator(ref string ident, bool identOptional = false) { - auto t = parseBasicType2(parseBasicType()); + auto t = parseType(); if (token.type == T.Identifier) { ident = token.srcText; nT(); + t = parseDeclaratorSuffix(t); } else if (!identOptional) errorIfNot(T.Identifier); - return parseDeclaratorSuffix(t); + return t; } Argument[] parseParameters()