[LLVMbugs] [Bug 15764] New: unable to match template friend conversion operator in redeclaration lookup

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Apr 17 02:06:13 PDT 2013


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

            Bug ID: 15764
           Summary: unable to match template friend conversion operator in
                    redeclaration lookup
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: unassignedclangbugs at nondot.org
          Reporter: richard-llvm at metafoo.co.uk
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Clang rejects this:

template<typename T, typename U> using X = T(*)(U);
struct S { template<typename T, typename U> operator X<T,U>(); };
struct U { template<typename T, typename U> friend S::operator X<T,U>(); };

error: no function named 'operator type-parameter-0-0 (*)(struct U)' with type
'X<T, U> ()' was found in the specified scope

This code is valid; EDG and g++ accept.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130417/d3e2ba71/attachment.html>


More information about the llvm-bugs mailing list