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: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Kenji Hara <[email protected]> 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: -------