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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jun 15 02:47:31 PDT 2010


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


bearophile_hugs at eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs at eml.cc


--- Comment #7 from bearophile_hugs at eml.cc 2010-06-15 02:47:30 PDT ---
I have not seen the ICE but this asserts (v2.047 with warnings):


class A {
   void foo(int x)
       in {
           assert(x > 0); // asserts
       } body {}
}
class B : A {
   override void foo(int y) {}
}
void main() {
    auto b = new B;
    b.foo(10);
}

-- 
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