[llvm-bugs] [Bug 47521] error: no candidate function template was found for dependent friend function template specialization

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Sep 14 17:03:54 PDT 2020


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

Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|NEW                         |RESOLVED

--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> ---
Clang is correct here; naming the friend as 'f<A>' requires a prior declaration
of a function template named 'f'. EDG/ICC and MSVC also reject this invalid
code; only GCC accepts.

-- 
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/20200915/f637b17d/attachment.html>


More information about the llvm-bugs mailing list