[LLVMbugs] [Bug 12176] New: 3 identical definitions of getDepthAndIndex(NamedDecl *ND)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Mar 3 19:24:40 PST 2012


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

             Bug #: 12176
           Summary: 3 identical definitions of  getDepthAndIndex(NamedDecl
                    *ND)
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: chisophugis at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


There are three identical functions

static std::pair<unsigned, unsigned> getDepthAndIndex(NamedDecl *ND)

in 3 different source files:

SemaTemplateDeduction.cpp:515
SemaTemplateInstantiate.cpp:632
SemaTemplateVariadic.cpp:472

Interestingly, they have slightly different doxygens though.

It shouldn't take more than a minute for someone who knows this code to put a
declaration in the appropriate common header and delete the extra definitions.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list