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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to