Performance issue with recursive calls
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 2.9k
- Forks
- 231
- Avg merge
- 19h 55m
- Merged PRs (30d)
- 67
Description
Summary
This code causes an error in gccrs, but rustc didn't report the error. The compiler experiences significant performance degradation when handling recursive calls and nested structures, leading to timeouts.
Reproducer
See it in compiler explorer.
Does the code make use of any (1.49) nightly feature ?
- Nightly
Godbolt link
https://godbolt.org/z/G49Tfbxff
Actual behavior
The compiler times out.
Expected behavior
The compiler should compile the code quickly.
GCC Version
14.0.1
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.
Research direction
Start by running the Godbolt reproducer from the issue with gccrs and compare its behavior with rustc. Investigate why recursive calls and nested structures cause gccrs to time out, using GCC 14.0.1 as the reported version. Done means the reproducer compiles quickly without the reported error or timeout.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, rust
- Domain
- compilers, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100