[Issue 12236] New: Inconsistent mangleof result
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Feb 23 23:31:19 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12236
Summary: Inconsistent mangleof result
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: accepts-invalid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: k.hara.pg at gmail.com
--- Comment #0 from Kenji Hara <k.hara.pg at gmail.com> 2014-02-23 23:31:15 PST ---
In both cases, getting mangleof should cause forward reference error.
Test case:
auto f1(int)
{
pragma(msg, f1.mangleof); // forward reference error -> OK
}
auto f2(T)(T)
{
pragma(msg, f2.mangleof); // weird output: "v"
}
void main()
{
f1(1);
f2(1);
}
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list