www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - alias bug - assert at line 999 in 'func.c'

reply "Ilya Zaitseff" <sark7 mail333.com> writes:
<code>
void foo() {}
int _foo;
alias _foo foo;

void main()
{
	foo = 1;
}
</code>

DMD 0.111 outputs:

Assertion failure: '0' on line 909 in file 'func.c'

abnormal program termination
Feb 14 2005
parent =?UTF-8?B?VGhvbWFzIEvDvGhuZQ==?= writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ilya Zaitseff wrote:

| <code>
| void foo() {}
| int _foo;
| alias _foo foo;
|
| void main()
| {
|     foo = 1;
| }
| </code>
|
| DMD 0.111 outputs:
|
| Assertion failure: '0' on line 909 in file 'func.c'
|
| abnormal program termination

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

Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)

iD8DBQFCFmi03w+/yD4P9tIRAo/RAJ9qRXPg5jJB6lw33IOhecevSXTokACfQYjB
I/l9akjTFK2lZA8VjVkobHc=
=Lxcv
-----END PGP SIGNATURE-----
Feb 18 2005