[LLVMbugs] [Bug 21351] New: Incorrect name mangling for a template class method reference

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Oct 22 20:17:38 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=21351

            Bug ID: 21351
           Summary: Incorrect name mangling for a template class method
                    reference
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: liujiangning1 at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

For this small test case,

{code}
template <int dim> class AA { public: AA(){} };                                 

class BB
{
public:
    template <template<int> class C>
    static C<3> fin (const C<3> &);
};

AA<3> f(const AA<3> &dof)
{
    return BB::fin(dof);
}
{code}

We have the following symbols generated for method BB::fin(dof),

clang++: _ZN2BB3finI2AAEET_ILi3EERKS2_
g++    : _ZN2BB3finI2AAEET_ILi3EERKS3_

The demangling results are,

clang++: AA<3> BB::fin<AA>(AA const&)
g++    : AA<3> BB::fin<AA>(AA<3> const&)

-- 
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/20141023/1a28356a/attachment.html>


More information about the llvm-bugs mailing list