Thread overview
[Issue 232] New: Invalid v-tables :(
Jun 29, 2006
d-bugmail
Jun 30, 2006
Thomas Kuehne
Jun 30, 2006
Tom S
Jul 18, 2006
d-bugmail
June 29, 2006
http://d.puremagic.com/issues/show_bug.cgi?id=232

           Summary: Invalid v-tables :(
           Product: D
           Version: 0.161
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: wrong-code
          Severity: critical
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: h3r3tic@mat.uni.torun.pl


// main.d ----
private import someClass;
private import std.stdio;


private template OneBadMixin() {
        void theEvilFunction() {
                assert (false);
        }
}


void main()
{
        auto x = new SomeClass;
        x.goodFunc();
}
// ----



// someClass.d ----
private import main;


template BadMixinArgh() {
        void goodFunc() {}
}


class SomeClass {
        mixin BadMixinArgh;
        mixin OneBadMixin;
}
// ----



sh-2.04$ dmd main.d someClass.d && ./main.exe d:\coding\dmd\bin\..\..\dm\bin\link.exe main+someClass,,,user32+kernel32/noi; Error: AssertError Failure main.d(7)


This bug has existed in D for more than a year. The previous reports used class-local imports, but the issue is exactly the same with mixins. Could we finally get a fix ? :(


-- 

June 30, 2006
d-bugmail@puremagic.com schrieb am 2006-06-29:

> This bug has existed in D for more than a year. The previous reports used class-local imports, but the issue is exactly the same with mixins. Could we finally get a fix ? :(

What is the link of the old bug report?

Thomas


June 30, 2006
Thomas Kuehne wrote:
> What is the link of the old bug report?

http://www.digitalmars.com/d/archives/digitalmars/D/bugs/6436.html
http://www.digitalmars.com/d/archives/digitalmars/D/bugs/6450.html

These aren't very old, yet Ant has complained about the problem much earlier.


-- 
Tomasz Stachowiak  /+ a.k.a. h3r3tic +/
July 18, 2006
http://d.puremagic.com/issues/show_bug.cgi?id=232


jpelcis@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




--