[LLVMbugs] [Bug 11307] New: Template parameter candidate incorrectly ignored

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Nov 4 05:30:20 PDT 2011


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

             Bug #: 11307
           Summary: Template parameter candidate incorrectly ignored
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: bradley.hughes at nokia.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 7574
  --> http://llvm.org/bugs/attachment.cgi?id=7574
SSCCE to show the problem.

When declaring a template function with a function pointer template parameter,
clang fails to substitute a static function that is used as the template
parameter. A non-inline, non-static function works, as does a non-static inline
function. See the attached templatefunc.cpp for the reproduction case. 

Reproduced using the llvm 3.0 and clang 3.0 branches:

clang version 3.0 (http://llvm.org/git/clang.git
464779576943466ae532d9c17443a534837f6c28)
Target: x86_64-apple-darwin11.2.0
Thread model: posix

-- 
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