[llvm-bugs] [Bug 40700] New: requires clause on a template alias is ignored (Concepts TS)
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Feb 12 01:54:17 PST 2019
https://bugs.llvm.org/show_bug.cgi?id=40700
Bug ID: 40700
Summary: requires clause on a template alias is ignored
(Concepts TS)
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++2a
Assignee: unassignedclangbugs at nondot.org
Reporter: antoshkka 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
The following code compiles however it should not:
template<bool condition, typename T = void>
requires(condition)
using enable_if_t = T;
template<typename T, typename = enable_if_t<sizeof(T) < 0>>
void foo();
void test() {
foo<int>();
}
--
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/20190212/e7af018f/attachment.html>
More information about the llvm-bugs
mailing list