Ooh - Got me an OPTLINK error!

Janice Caron caron800 at googlemail.com
Sat Nov 10 06:02:51 PST 2007


The following won't compile with the latest D2.007. The error is:

OPTLINK (R) for Win32  Release 7.50B1
Copyright (C) Digital Mars 1989 - 2001  All Rigths Reserved

demo.obj(demo)  Offset 0035EH Record Type 009D
 Error 16: Index Range

It seems to be the alias on the last line that kills it.

///////////////////////////

void main() {}

template A()
{
    const uint N = 16;

    class A
    {
        ubyte[] f()
        {
            return new ubyte[N];
        }
    }
}

alias A!() B;



More information about the Digitalmars-d mailing list