Re: Assertion failure: 'fieldi>=0 && fieldi < se->elements->dim' on line 2062 in file 'interpret.c'

2010-05-14 Thread strtr
or : module main; //const S s = S(.5f); // Uncomment to make it compile struct S { float a; static S opCall( float a_ ) { S s = { a_ }; return s; } const S _s = S( 1f ); } void main(){}

Re: Assertion failure: 'fieldi>=0 && fieldi < se->elements->dim' on line 2062 in file 'interpret.c'

2010-05-14 Thread strtr
== Quote from bearophile (bearophileh...@lycos.com)'s article > This produces the same errors: > struct Foo { > int bar; > static Foo baz() { > return Foo(); > } > const Foo one = Foo.baz(); > } > void main() {} > Bye, > bearophile And this is why in my program compiled any

Re: Assertion failure: 'fieldi>=0 && fieldi < se->elements->dim' on line 2062 in file 'interpret.c'

2010-05-13 Thread bearophile
This produces the same errors: struct Foo { int bar; static Foo baz() { return Foo(); } const Foo one = Foo.baz(); } void main() {} Bye, bearophile

Re: Assertion failure: 'fieldi>=0 && fieldi < se->elements->dim' on line 2062 in file 'interpret.c'

2010-05-13 Thread strtr
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 t

Re: Assertion failure: 'fieldi>=0 && fieldi < se->elements->dim' on line 2062 in file 'interpret.c'

2010-05-07 Thread Don
strtr wrote: Killed it again :( Are you using the latest DMD? If so, please try to create a test case, as this bug has never been reported before. Thanks!

Re: Assertion failure: 'fieldi>=0 && fieldi < se->elements->dim' on line 2062 in file 'interpret.c'

2010-05-07 Thread strtr
Not feeding a float to ToString! seems to bring it back to life. What is up with that anyway? How do I output a float in compile time?

Assertion failure: 'fieldi>=0 && fieldi < se->elements->dim' on line 2062 in file 'interpret.c'

2010-05-07 Thread strtr
Killed it again :(