https://llvm.org/bugs/show_bug.cgi?id=23555

            Bug ID: 23555
           Summary: clang fails to find friend function template
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified

consider:
struct S {
  template <typename>
  friend void f() {}
};

auto q = f<int>;

GCC, MSVC, ICC and FlexeLint all accept while clang rejects with:
error: use of undeclared identifier 'f'
error: expected '(' for function-style cast or type construction

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