digitalmars.D.bugs - [Issue 221] New: Inconsistent name mangling of bool (a relic of 'bit')
- d-bugmail puremagic.com (23/23) Jun 23 2006 http://d.puremagic.com/issues/show_bug.cgi?id=221
- Thomas Kuehne (13/24) Sep 14 2006 -----BEGIN PGP SIGNED MESSAGE-----
- d-bugmail puremagic.com (14/14) Nov 23 2006 http://d.puremagic.com/issues/show_bug.cgi?id=221
- d-bugmail puremagic.com (9/9) Dec 03 2006 http://d.puremagic.com/issues/show_bug.cgi?id=221
http://d.puremagic.com/issues/show_bug.cgi?id=221 Summary: Inconsistent name mangling of bool (a relic of 'bit') Product: D Version: 0.160 Platform: PC OS/Version: Windows Status: NEW Severity: minor Priority: P4 Component: DMD AssignedTo: bugzilla digitalmars.com ReportedBy: clugdbug yahoo.com.au Long ago, bit was name-mangled as 'x', but now that bit is gone, bool is name-mangled as 'b'. However, for function parameters, bool is still name-mangled as 'x' rather than the expected 'b'. bool.mangleof == "b" but... (void function(bool)).mangleof == "PFxZv" instead of the more natural "PFbZv" This means that one of the few unused name-mangling letters ('x') is wasted. Probably an implementation quirk rather than a bug. --
Jun 23 2006
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 d-bugmail puremagic.com schrieb am 2006-06-23:http://d.puremagic.com/issues/show_bug.cgi?id=221Long ago, bit was name-mangled as 'x', but now that bit is gone, bool is name-mangled as 'b'. However, for function parameters, bool is still name-mangled as 'x' rather than the expected 'b'. bool.mangleof == "b" but... (void function(bool)).mangleof == "PFxZv" instead of the more natural "PFbZv" This means that one of the few unused name-mangling letters ('x') is wasted. Probably an implementation quirk rather than a bug.Added to DStress as http://dstress.kuehne.cn/compile/b/bool_07_A.d http://dstress.kuehne.cn/compile/b/bool_07_B.d http://dstress.kuehne.cn/compile/b/bool_07_C.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFFCP9OLK5blCcjpWoRArQ5AJ4zICwdJn/+XCb25p/EEl9NJYzlOgCfeaQR di6qDDkQF3WGNA0dRlieCVE= =QXjy -----END PGP SIGNATURE-----
Sep 14 2006
http://d.puremagic.com/issues/show_bug.cgi?id=221 clugdbug yahoo.com.au changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|minor |normal Summary|Inconsistent name mangling |Inconsistent name mangling |of bool (a relic of 'bit') |of bool (a relic of 'bit') | |[Patch included] mtype.c line 174-175, mangleChar[Tbit] = 'b'; mangleChar[Tbool] = 'x'; This should be changed so they are both 'b'. --
Nov 23 2006
http://d.puremagic.com/issues/show_bug.cgi?id=221 deewiant gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED Fixed in DMD 0.176. --
Dec 03 2006