digitalmars.D.bugs - [Patch] unhandled file endings GDC/DMD
- Thomas Kuehne (25/25) Feb 06 2005 -----BEGIN PGP SIGNED MESSAGE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 test cases: http://dstress.kuehne.cn/run/html_htm_02.HTM http://dstress.kuehne.cn/run/html_html_02.HTML Those file ending are aren't handled in d/module.c, consequently throwing an error in the module constructor. Handle error messages correct that are thrown in the Module ctor. - --- gdc-0.10/d/dmd/dsymbol.c 2005-01-09 01:40:20.000000000 +0100 +++ gdc-0.10-file/d/dmd/dsymbol.c 2005-02-07 02:22:45.255930712 +0100 -113,7 +113,7 Module *m = getModule(); - - if (m) + if (m && m->srcfile) loc.filename = m->srcfile->toChars(); return loc.toChars(); } GDC specific: GDC accepts HTML/HTM but cc1d (->module.c) doesn't. Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFCBsT23w+/yD4P9tIRAjr0AKCdyv7F0Iqd7EpZdqyUb3A81cKx7ACgw4Yw p0DQWpM5BVu4azp5yeEWzvI= =Pldu -----END PGP SIGNATURE-----
Feb 06 2005