Bug 17551 – VC build: bad mangling of real template argument
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Windows
Creation time
2017-06-25T15:41:16Z
Last change time
2017-08-16T13:22:53Z
Keywords
pull
Assigned to
No Owner
Creator
Rainer Schuetze
Comments
Comment #0 by r.sagitario — 2017-06-25T15:41:16Z
When building dmd with the VC runtime, templates with real arguments are mangled wrong:
module test;
real foo(real x)() { return x; }
pragma(msg, (foo!0.3).mangleof); // _D4test__T3fooVeex13333333333333334pN2ZQBdFNaNbNiNfZe
Please note the additional 'x' before the constant as well as the small 'p' before the exponent (sould be 'P')