www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17551] New: VC build: bad mangling of real template argument

https://issues.dlang.org/show_bug.cgi?id=17551

          Issue ID: 17551
           Summary: VC build: bad mangling of real template argument
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: r.sagitario gmx.de

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')

--
Jun 25