-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[LLVM-18.1.3] Parser CRASHING on requires expression #88081
Comments
godbolt link to the failing code https://gcc.godbolt.org/z/jT8zedTax |
@llvm/issue-subscribers-c-20 Author: nyako (nyyakko)
System:
`Windows 10 Pro 21H2`
clang++:
Snippet: struct S
{
S(auto value)
requires (requires () { [&] -> decltype(value) {}; })
{}
}; Backtrace:
|
@llvm/issue-subscribers-clang-frontend Author: nyako (nyyakko)
System:
`Windows 10 Pro 21H2`
clang++:
Snippet: struct S
{
S(auto value)
requires (requires () { [&] -> decltype(value) {}; })
{}
}; Backtrace:
|
Confirmed: https://gcc.godbolt.org/z/x1zMb783P Assertion: clang++: /root/llvm-project/llvm/include/llvm/ADT/SmallVector.h:304:
T& llvm::SmallVectorTemplateCommon<T, <template-parameter-1-2> >::operator[](llvm::SmallVectorTemplateCommon<T, <template-parameter-1-2> >::size_type) [with T = clang::sema::FunctionScopeInfo*; <template-parameter-1-2> = void; llvm::SmallVectorTemplateCommon<T, <template-parameter-1-2> >::reference = clang::sema::FunctionScopeInfo*&; llvm::SmallVectorTemplateCommon<T, <template-parameter-1-2> >::size_type = long unsigned int]:
Assertion `idx < size()' failed. Using assertions build is usually more helpful, since if it asserts it usually will be a better pointer to the real underlying problem. |
I presume #78598 was supposed to fix this issue (and other duplicates) but the author gave up anyway. |
System:
Windows 10 Pro 21H2
clang++:
Snippet:
Backtrace:
The text was updated successfully, but these errors were encountered: