www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - compiler message

could dmd give an error on line 5 as well as line 1?


struct S;

void main()
{
     S* s = new S();
}

gives these messages from DMD

s.d(1): struct s.S unknown size
s.d(1): struct s.S no size yet for forward reference
s.d(1): struct s.S unknown size
s.d(1): struct s.S no size yet for forward reference
Internal error: e2ir.c 1289

(error reported on bugs group)

Ant
Mar 06 2006