[Issue 2238] New: Internal DMD data corruption

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jul 19 13:03:38 PDT 2008


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

           Summary: Internal DMD data corruption
           Product: D
           Version: 1.033
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: minor
          Priority: P4
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: 2korden at gmail.com


Compiling the code:

main.d
~~~~~~
import math.Matrix;

void main()
{
    auto a = new Matrix44F();
    Matrix44F.add(a, a);
}

math/Matrix.d
~~~~~~~~~~~~~
module math.Matrix;

class Matrix44F
{
    static M add(M)(M a, M b);
}

produces the following DMD output:
Error 42: Symbol Undefined
_D4math6Mбrix9х44F32__T3addTCЂ–ЎZЂ„ќFЂ—ќЂ˜ґЂ—˜

Looks like some internal data corruption takes place...
Changing nearly anything (return type value, number of arguments, module name
etc.) makes problem disappear.


-- 



More information about the Digitalmars-d-bugs mailing list