[llvm-bugs] [Bug 46522] New: [DWARF] Template instance name not consistent with CodeView.

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jun 30 09:27:42 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=46522

            Bug ID: 46522
           Summary: [DWARF] Template instance name not consistent with
                    CodeView.
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: DebugInfo
          Assignee: unassignedbugs at nondot.org
          Reporter: international.phantom at gmail.com
                CC: jdevlieghere at apple.com, keith.walker at arm.com,
                    llvm-bugs at lists.llvm.org,
                    paul_robinson at playstation.sony.com

For the given test:

//----------------------------------------------------------

template<class U,class V>
struct S {
};

S<int, char> SS;

//----------------------------------------------------------

The name generated for the template instance, is not consistent between clang
(DWARF) and clang (CodeView), making search or compare difficult.

Clang (DWARF):     'S<int, char>'     <-- Added space
Clang (CodeView):  'S<int,char>'

GCC (DWARF):       'S<int, char>'
MSVC (CodeView):   'S<int,char>'

Clang (DWARF) adds a space between arguments.
Clang (CodeView) does not add any spaces.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200630/3e2e6cc0/attachment.html>


More information about the llvm-bugs mailing list