[Issue 7469] New: template mangling depends on instantiation order
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Feb 8 20:26:04 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7469
Summary: template mangling depends on instantiation order
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: dawg at dawgfoto.de
--- Comment #0 from dawg at dawgfoto.de 2012-02-08 20:26:03 PST ---
---- bug.d ----
struct Foo(int i)
{
}
version (A)
{
Foo!3 fooa;
Foo!3u foob;
}
else
{
Foo!3u fooa;
Foo!3 foob;
}
pragma(msg, typeof(fooa).mangleof);
pragma(msg, typeof(foob).mangleof);
----
dmd -c bug.d
S3bug11__T3FooVk3Z3Foo
S3bug11__T3FooVk3Z3Foo
----
dmd -c -version=A bug.d
S3bug11__T3FooVi3Z3Foo
S3bug11__T3FooVi3Z3Foo
----
The mangling should depend on the template value parameter type
not the type of the argument.
--
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