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: unassignedclangb...@nondot.org
Reporter: dudkindanii...@yandex.ru
CC: blitzrak...@gmail.com, erik.pilking...@gmail.com,
llvm-bugs@lists.llvm.org, richard-l...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs