[llvm-bugs] [Bug 51899] [c++] variadic template specialization doesn't consider template parameter default value

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Sep 18 12:17:37 PDT 2021


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

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

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

--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> ---
This behaviour is correct. Default template arguments are only used if the
template argument is not specified and can't be deduced. Here we can deduce
First = int from the given function signature.

See https://eel.is/c++draft/temp.deduct.decl

-- 
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/20210918/5df104d7/attachment.html>


More information about the llvm-bugs mailing list