[LLVMbugs] [Bug 7010] New: template instantiation of function can't find this function in the namespace

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun May 2 00:06:09 PDT 2010


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

           Summary: template instantiation of function can't find this
                    function in the namespace
           Product: clang
           Version: 2.7
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: yuri at tsoft.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


--- testcase ---
template<typename T> class Container { };

namespace Z {
  template<template<typename> class Container> int x(const Container<int> &s);
};

template<template<typename> class Container> int Z::x(const Container<int> &s)
{
  return 0;
}

--- output ---
pr.C:8:53: error: out-of-line definition of 'x' does not match any declaration
in namespace 'Z'
template<template<typename> class Container> int Z::x(const Container<int> &s)
{
                                                 ~~~^
1 diagnostic generated.

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