From 2b5fecfbcb1b6a8d1043e48e8d3b38dda39e9b24 Mon Sep 17 00:00:00 2001 From: Hackerpilot Date: Tue, 17 Sep 2013 22:47:49 +0000 Subject: [PATCH] Fix #53 --- stdx/d/parser.d | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stdx/d/parser.d b/stdx/d/parser.d index 2b8ef29..d480f21 100644 --- a/stdx/d/parser.d +++ b/stdx/d/parser.d @@ -2453,6 +2453,7 @@ body {} // six node.templateParameters = parseTemplateParameters(); node.parameters = parseParameters(); + if (node.parameters is null) return null; while(moreTokens() && currentIsMemberFunctionAttribute()) node.memberFunctionAttributes ~= parseMemberFunctionAttribute(); @@ -6490,7 +6491,7 @@ private: if (suppressMessages > 0) return; if (index < tokens.length) - writeln(message, "(", current.line, ":", current.column + 1, ")"); + writeln(message, "(", current.line, ":", current.column, ")"); else writeln(message, "(EOF:0)"); }