changeset 1259:dda95755f63d

Fix parsing of import statements to only pass valid identifiers to Import constructor. Fixes #264.
author Christian Kamm <kamm incasoftware de>
date Thu, 23 Apr 2009 20:44:55 +0200
parents 192529570813
children 3d6a908a34e9
files dmd/parse.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dmd/parse.c	Thu Apr 23 20:28:29 2009 +0200
+++ b/dmd/parse.c	Thu Apr 23 20:44:55 2009 +0200
@@ -1640,7 +1640,7 @@
 	    nextToken();
 	}
 
-	s = new Import(loc, a, token.ident, aliasid, isstatic);
+	s = new Import(loc, a, id, aliasid, isstatic);
 	decldefs->push(s);
 
 	/* Look for