www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - assertion failure

reply marko <tm030127d galeb.etf.bg.ac.yu> writes:
DMD 0.112 WIN32

-----------
struct Marko
{
	int a;
	int* m = &a;
}
-----------

Assertion failure: '!needThis()' on line 139 in file 'tocsym.c'
Feb 10 2005
parent Stewart Gordon <smjg_1998 yahoo.com> writes:
marko wrote:
 DMD 0.112 WIN32
 
 -----------
 struct Marko
 {
     int a;
     int* m = &a;
 }
 -----------
 
 Assertion failure: '!needThis()' on line 139 in file 'tocsym.c'

I reported this only the other day. Walter tells me that this is invalid code, presumably because &a isn't determinable at compile time. And that it's just been fixed to deliver an appropriate error message. Stewart. -- My e-mail is valid but not my primary mailbox. Please keep replies on the 'group where everyone may benefit.
Feb 11 2005