[Issue 12217] New: Unstable instance mangled name of function local template
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Feb 20 23:45:45 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12217
Summary: Unstable instance mangled name of function local
template
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: major
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-20 23:45:43 PST ---
Test case:
void foo(int)
{
static struct S {}
pragma(msg, " ", S.mangleof);
void bar() {}
pragma(msg, bar.mangleof);
int var;
pragma(msg, var.mangleof);
template X(T) {}
pragma(msg, " ", X!int.mangleof); // !
}
version(bug) void foo() {}
Without "-version=bug"
S4test3fooFiZv1S
_D4test3fooFiZv3barMFZv
_D4test3fooFiZv3vari
4test3fooFiZv8__T1XTiZ <----
With "-version=bug"
S4test3fooFiZv1S
_D4test3fooFiZv3barMFZv
_D4test3fooFiZv3vari
4test3foo8__T1XTiZ <---- changed!
--
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