Bug 750 – Recursive typeof in function declaration crashes DMD

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
All
OS
All
Creation time
2006-12-26T08:13:00Z
Last change time
2014-02-15T13:21:27Z
Keywords
ice-on-valid-code
Assigned to
bugzilla
Creator
dvdfrdmn

Comments

Comment #0 by dvdfrdmn — 2006-12-26T08:13:20Z
-------- 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?
Comment #1 by thomas-dloop — 2006-12-27T06:10:45Z
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 [email protected] 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-----
Comment #2 by bugzilla — 2007-01-03T22:12:35Z
Fixed DMD 1.00