[Issue 3602] ICE(tocsym.c) compiling a class, if its super class has preconditions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jun 14 18:30:10 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=3602


Stewart Gordon <smjg at iname.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smjg at iname.com
           Platform|Other                       |All
         OS/Version|Linux                       |All
           Severity|critical                    |regression


--- Comment #4 from Stewart Gordon <smjg at iname.com> 2010-06-14 18:30:05 PDT ---
The given testcase is invalid.  However, by fixing the errors, it's
reproducible under Windows:

----- imagebox.d -----
module imagebox;
import box;

class ImageBox: Box {
   override void paint(int x, int y)
   in {
       assert(x > 0);
       assert(y > 0);
   }
   body {
   }
}
----- box.d -----
module box;
class Box {
   void paint(int x, int y)
   in {
       assert(x > 0);
       assert(y > 0);
   }
   body {
   }
}
----------
C:\Users\Stewart\Documents\Programming\D\Tests\bugs\bz3602>dmd -c imagebox.d
box.d(5): Error: function __require forward declaration
linkage = 0
Assertion failure: '0' on line 381 in file 'tocsym.c'

abnormal program termination
----------

This has broken SDWF.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list