[Issue 460] New: Assertion failure: '!needThis()' on line 143 in file 'tocsym.c'

Thomas Kuehne thomas-dloop at kuehne.cn
Wed Nov 8 07:33:28 PST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

d-bugmail at puremagic.com schrieb am 2006-10-25:
> http://d.puremagic.com/issues/show_bug.cgi?id=460

> The code listed below is invalid, but an error message would be better than a
> compiler assertion failure.
>
>>dmd -c gld\tmp.d
> Assertion failure: '!needThis()' on line 143 in file 'tocsym.c'
>
> abnormal program termination
>
> ----- tmp.d -----
> extern(C) void func(void*);
>
> struct s {
>     int v;
> }
>
> void func2() {
>   func(&s.v);
> }

Added to DStress as
http://dstress.kuehne.cn/nocompile/b/bug_tocsym_142_E.d

Thomas


-----BEGIN PGP SIGNATURE-----

iD8DBQFFUf47LK5blCcjpWoRAu0vAKCT2T3Up1jBZ5aJ6BtpG30hps6y2ACdGAc7
sOmZhL8cR3mu5QUaT4yrR9I=
=rRFD
-----END PGP SIGNATURE-----



More information about the Digitalmars-d-bugs mailing list