diff dmd/parse.c @ 35:3cfcb944304e trunk

[svn r39] * Updated to DMD 1.022 with the exception of: Bugzilla 278: dmd.conf search path doesn't work This fix was causing crashes for me :/ So for it's the old behaviour
author lindquist
date Tue, 09 Oct 2007 06:21:30 +0200
parents 788401029ecf
children 70d6113eeb8c
line wrap: on
line diff
--- a/dmd/parse.c	Tue Oct 09 02:50:00 2007 +0200
+++ b/dmd/parse.c	Tue Oct 09 06:21:30 2007 +0200
@@ -1835,7 +1835,6 @@
 	    case TOKlparen:
 	    {	Arguments *arguments;
 		int varargs;
-		Type **pt;
 
 		if (tpl)
 		{
@@ -1852,7 +1851,8 @@
 		}
 
 		arguments = parseParameters(&varargs);
-		ta = new TypeFunction(arguments, t, varargs, linkage);
+		Type *ta = new TypeFunction(arguments, t, varargs, linkage);
+		Type **pt;
 		for (pt = &ts; *pt != t; pt = &(*pt)->next)
 		    ;
 		*pt = ta;