[llvm-bugs] [Bug 47376] New: rejects-valid on non-trailing requires clause in generic lambda
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Aug 31 17:37:35 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=47376
Bug ID: 47376
Summary: rejects-valid on non-trailing requires clause in
generic lambda
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: C++2a
Assignee: unassignedclangbugs at nondot.org
Reporter: richard-llvm at metafoo.co.uk
CC: blitzrakete at gmail.com, erik.pilkington at gmail.com,
llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk
Per https://wg21.link/p0857r0 (which we claim to implement), a requires-clause
can appear after the explicit template parameter list in a generic lambda, but
Clang rejects:
<source>:1:25: error: lambda requires '()' before 'requires' clause
auto x = []<typename T> requires true () {};
^
()
--
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/20200901/9e459f75/attachment.html>
More information about the llvm-bugs
mailing list