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: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
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._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs