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

Reply via email to