www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20029] New: Wrong MSVC mangling for const class template

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

          Issue ID: 20029
           Summary: Wrong MSVC mangling for const class template arguments
           Product: D
           Version: D2
          Hardware: All
                OS: Windows
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: ilyayaroshenko gmail.com

On Posix systems the mangling is correct.
MSVC mangling is not correct (it can't be parsed by demanglers).

-------------
module ee;

extern(C++):

class C {}

struct S(T) {}

void bar(S!(const C)) {}

pragma(msg, bar.mangleof);
-------------

--
Jul 04 2019