https://bugs.llvm.org/show_bug.cgi?id=45881
Bug ID: 45881
Summary: Assertion `CurLSI && "While computing 'this'
capture-type for a generic " "lambda, we must have a
corresponding LambdaScopeInfo"' failed
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
$ cat test-formatted.ii
class s {
int i;
void a() {
[](auto) __attribute__((requires_capability(i))){}(1);
}
};
$ clang++ -c -o test.o test-formatted.ii -std=gnu++2a
clang++: ../clang/lib/Sema/SemaExprCXX.cpp:1113: clang::QualType
adjustCVQualifiersForCXXThisWithinLambda(ArrayRef<clang::sema::FunctionScopeInfo
*>, clang::QualType, clang::DeclContext *, clang::ASTContext &): Assertion
`CurLSI && "While computing 'this' capture-type for a generic " "lambda, we
must have a corresponding LambdaScopeInfo"' failed.
--
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