[llvm-bugs] [Bug 47841] New: Template argument deduction not allowed in template parameter

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Oct 14 05:16:06 PDT 2020


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

            Bug ID: 47841
           Summary: Template argument deduction not allowed in template
                    parameter
           Product: clang
           Version: 11.0
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++2a
          Assignee: unassignedclangbugs at nondot.org
          Reporter: dudkindaniilm2 at yandex.ru
                CC: blitzrakete at gmail.com, erik.pilkington at gmail.com,
                    llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk

https://godbolt.org/z/W8s74M

#include <array>

template <std::array Arr>
struct Foo {
};


<source>:3:11: error: use of class template 'array' requires template
arguments; argument deduction not allowed in template parameter

template <std::array Arr>

          ^~~

But latest C++20 draft says otherwise [temp.arg.nontype.1]:
http://eel.is/c++draft/temp.arg.nontype#1

-- 
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/20201014/fd4f8eb2/attachment.html>


More information about the llvm-bugs mailing list