[Issue 750] New: Recursive typeof in function declaration crashes DMD

Thomas Kuehne thomas-dloop at kuehne.cn
Wed Dec 27 04:07:59 PST 2006


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

d-bugmail at puremagic.com schrieb am 2006-12-26:
> http://d.puremagic.com/issues/show_bug.cgi?id=750

> --------
> void test(typeof(&test) p) { }
> void main() { test(); }
> --------
>
> Note that the test case for issue 745, which does have the 'main', compiles
> without errors.
>
> Another issue(?):  If 'main' is removed, the mangled name of 'test' contains a
> '@'.  Is this valid?

Added to DStress as
http://dstress.kuehne.cn/run/t/typeof_11_C.d
http://dstress.kuehne.cn/nocompile/t/typeof_11_D.d

Thomas


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

iD8DBQFFklRTLK5blCcjpWoRAgpcAKCEgSOaUypsHUrfaf+Ii7vOC2TSTACfamJo
mlG0lKjpNhM7XV9hVFPxaKU=
=jSly
-----END PGP SIGNATURE-----


More information about the Digitalmars-d-bugs mailing list