digitalmars.D.bugs - Assertion failure: tocsym.c 139 - struct initialiser pointing to
- Stewart Gordon (31/31) Feb 08 2005 Using DMD 0.111, Windows 98SE.
- =?ISO-8859-1?Q?Thomas_K=FChne?= (45/45) Feb 12 2005 -----BEGIN PGP SIGNED MESSAGE-----
Using DMD 0.111, Windows 98SE. ---------- struct Qwert { int[20] yuiop; int* asdfg = yuiop.ptr; } ---------- struct Qwert { int[20] yuiop; int* asdfg = &yuiop[0]; } ---------- struct Qwert { int yuiop; int* asdfg = &yuiop; } ---------- Assertion failure: '!needThis()' on line 139 in file 'tocsym.c' ---------- Should this compile? The spec doesn't clarify. I guess it should go in the same compile/nocompile section as this: ---------- struct Qwert { Qwert* asdfg = this; } ---------- which at the moment doesn't compile. Stewart. -- My e-mail is valid but not my primary mailbox. Please keep replies on the 'group where everyone may benefit.
Feb 08 2005
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Stewart Gordon wrote: | Using DMD 0.111, Windows 98SE. | | ---------- | struct Qwert { | int[20] yuiop; | int* asdfg = yuiop.ptr; | } | ---------- | struct Qwert { | int[20] yuiop; | int* asdfg = &yuiop[0]; | } | ---------- | struct Qwert { | int yuiop; | int* asdfg = &yuiop; | } | ---------- | Assertion failure: '!needThis()' on line 139 in file 'tocsym.c' | ---------- | | Should this compile? The spec doesn't clarify. I guess it should go in | the same compile/nocompile section as this: | | ---------- | struct Qwert { | Qwert* asdfg = this; | } | ---------- | | which at the moment doesn't compile. Added to DStress as http://dstress.kuehne.cn/nocompile/this_04.d http://dstress.kuehne.cn/nocompile/this_05.d http://dstress.kuehne.cn/nocompile/this_06.d Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (MingW32) iD8DBQFCDdVw3w+/yD4P9tIRAkcFAKDD2Hp3Fk6TW73uXAoxXacxDOL8ggCcDifO 0bbXac0JuriaQWag8WIa4Qc= =hz/Q -----END PGP SIGNATURE-----
Feb 12 2005