Assertion failure: 'fieldi>=0 && fieldi < se->elements->dim' on line 2062 in file 'interpret.c'
strtr
strtr at spam.com
Thu May 13 16:37:53 PDT 2010
Don Wrote:
> strtr wrote:
> > Killed it again :(
> >
>
> Are you using the latest DMD?
I was/am using 1.060
> If so, please try to create a test case,
> as this bug has never been reported before. Thanks!
Had to put some time into actual coding..
but I just tried to create a test case:
Removed the few dependencies of the fixed problem module and tried to compile it
by importing it in a clean main module. It didn't compile, which led me to this
tiny version which still doesn't compile :
----
module main;
import s_def;
void main(){}
----
module s_def;
struct S
{
float area;
static S opCall( float a_ )
{
S s = { a_ };
return s;
}
const S _s = S( 1f );
}
----
s_def.d(3): Error: struct s_def.S no size yet for forward reference
I don't know what this means
s_def.d(12): Error: cannot evaluate opCall(1F) at compile time
Probably related.
As far as I know I do exactly the same in my program
After understanding this I'll try to recreate the ToString!() bug :)
More information about the Digitalmars-d-learn
mailing list