Assertion in clang when referring to a structure type that doesn't exist
Open
- Dominant language
- LLVM
- Stars
- 729
- Forks
- 110
- Avg merge
- 17h 51m
- Merged PRs (30d)
- 23
Description
Trying to compile the following code:
```
kernel void test(global struct nope* arg) {}
```
leads to the following assertion
```
clspv: clspv/third_party/clang/lib/AST/RecordLayoutBuilder.cpp:2987: const clang::ASTRecordLayout& clang::ASTContext::getASTRecordLayout(const clang::RecordDecl*) const: Assertion `D && "Cannot get layout of forward declarations!"' failed.
Abandon
```
Contributor guide
Assessment
This issue has not been assessed yet.