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

Reply via email to