www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 232] New: Invalid v-tables :(

reply d-bugmail puremagic.com writes:
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 ? :(


-- 
Jun 29 2006
next sibling parent reply Thomas Kuehne <thomas-dloop kuehne.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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 -----BEGIN PGP SIGNATURE----- iD8DBQFEpOSd3w+/yD4P9tIRAvxOAKChOURjhvKwxLQISfyBXeuhv+FBKwCeNZK2 s5L9u615MN7jguVUtjsI9r4= =nxcu -----END PGP SIGNATURE-----
Jun 30 2006
parent Tom S <h3r3tic remove.mat.uni.torun.pl> writes:
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 +/
Jun 30 2006
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=232


jpelcis gmail.com changed:

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




-- 
Jul 18 2006