[Issue 5955] New: core.demangle fail to parse NaN and Infinity.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun May 8 02:55:12 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5955
Summary: core.demangle fail to parse NaN and Infinity.
Product: D
Version: D2
Platform: Other
OS/Version: Mac OS X
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: kennytm at gmail.com
--- Comment #0 from kennytm at gmail.com 2011-05-08 02:51:15 PDT ---
For example, the program
-------------------------------------------
module y;
template TTTTTTTTTT(float v) {
void TTTTTTTTTT() {
}
}
void main() {
TTTTTTTTTT!1.0f();
TTTTTTTTTT!(float.nan)();
TTTTTTTTTT!(float.infinity)();
}
-------------------------------------------
generates the symbols
_D1y22__T10TTTTTTTTTTVfeINFZ10TTTTTTTTTTFZv
_D1y22__T10TTTTTTTTTTVfeNANZ10TTTTTTTTTTFZv
_D1y23__T10TTTTTTTTTTVfe8PN3Z10TTTTTTTTTTFZv
which the demangler can only recognize 1 out of 3:
void y.__T10TTTTTTTTTTVfeINFZ.TTTTTTTTTT() // fail
void y.__T10TTTTTTTTTTVfeNANZ.TTTTTTTTTT() // fail
void y.TTTTTTTTTT!(1).TTTTTTTTTT() // ok
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list