diff dmd/func.c @ 333:f7190d9eb70c trunk

[svn r354] Fix the regressions between [346] and [353] by making constructors and destructors outside classes fatal errors. Fix tests makefile and add minimize to gc.d.
author ChristianK
date Sat, 12 Jul 2008 09:23:14 +0200
parents 2b72433d5c8c
children aaade6ded589
line wrap: on
line diff
--- a/dmd/func.c	Fri Jul 11 22:33:21 2008 +0200
+++ b/dmd/func.c	Sat Jul 12 09:23:14 2008 +0200
@@ -2208,6 +2208,7 @@
     if (!cd)
     {
 	error("constructors are only for class definitions");
+	fatal();
 	tret = Type::tvoid;
     }
     else
@@ -2302,6 +2303,7 @@
     if (!cd)
     {
 	error("destructors only are for class definitions");
+	fatal();
     }
     else
 	cd->dtors.push(this);