ispc / ispc/ispc

should issue error if anonymous struct is used in function declaration

Open
#258 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.