Enum unused not detected
Open
@Naveen447-a11y is already working on this.
Since Feb 25, 2026.
- Dominant language
- C++
- Stars
- 2.9k
- Forks
- 230
- Avg merge
- 19h 55m
- Merged PRs (30d)
- 67
Description
Summary
It seems gccrs is not detecting unused enums
Reproducer
I tried this code:
enum Foo {
A,
B,
}
Does the code make use of any (1.49) nightly feature ?
- Nightly
Godbolt link
https://godbolt.org/z/nnKWvx665
Actual behavior
There is no warning thrown
Expected behavior
I expected to see a warning on the unused enum
GCC Version
commit-hash: 32622b7
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.