should issue error if anonymous struct is used in function declaration
Open
C/C++ Compatibility
Frontend / Parser
- Dominant language
- C++
- Stars
- 3k
- Forks
- 352
- PR merge metrics
- No merged PRs in 30d
Description
ispc accepts this declaration
```
struct { int z; } foo(struct { int a, b; float c; } s);
```
even though it doesn't really make sense and there's no way to pass/return anonymous structs like this. This is an error in C++ and should be the same in ispc.
Contributor guide
Assessment
This issue has not been assessed yet.