www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - compiler assert on &unittest0

reply Thomas Kuehne <thomas-dloop kuehne.thisisspam.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

#
# unittest{}
#
# void main(){
#     void function() u = &unittest0;
# }
#

Not sure if this code is legal, but the compiler segfaults.

Thomas
 

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

iD8DBQFCWGTF3w+/yD4P9tIRAq4+AJ4yQc1mmLKjgqx0xUK4kAALOC7p8gCfaw86
2CO/JisQzHk/f4loejMi1gg=
=+pHC
-----END PGP SIGNATURE-----
Apr 09 2005
parent "Walter" <newshound digitalmars.com> writes:
"Thomas Kuehne" <thomas-dloop kuehne.thisisspam.cn> wrote in message
news:5v4mi2-l36.ln1 lnews.kuehne.cn...
 Not sure if this code is legal, but the compiler segfaults.

No, it's not legal, and it's fixed now. Thanks, -Walter
Apr 10 2005