[llvm-bugs] [Bug 43076] New: template <auto> doesn't work with partial specialization
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Aug 21 07:50:49 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=43076
Bug ID: 43076
Summary: template <auto> doesn't work with partial
specialization
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: C++17
Assignee: unassignedclangbugs at nondot.org
Reporter: barry.revzin at gmail.com
CC: blitzrakete at gmail.com, erik.pilkington at gmail.com,
llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk
Example:
template <auto> struct foo { static constexpr int value = 0; };
template <int I> struct foo<I> { static constexpr int value = 1; };
static_assert(foo<42L>::value == 0);
According to clang, foo<42L>::value is 1, but the partial specialization should
not match here (we fail [temp.deduct.type]/19 because the type of 42L differs
from the type of the parameter).
--
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/20190821/f57a9125/attachment.html>
More information about the llvm-bugs
mailing list