robotpy / robotpy/cxxheaderparser
[PARSE BUG]: messed up enum thing
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 153
- Forks
- 30
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 1
Description
Problem description
Was playing in godbolt and got this to work, but I can't imagine why you'd ever want to do this.
C++ code that can't be parsed correctly (please double-check that https://robotpy.github.io/cxxheaderparser/ has the same error)
template <typename T>
class C;
template <typename T>
class C {
public:
enum class E;
};
template <typename T>
enum class C<T>::E { A };
Contributor guide
No contributing guide indexed for this repository
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
Reproduce the C++ example from the issue in cxxheaderparser and compare its result with the behavior at the linked project site. Trace how the parser handles the forward-declared enum inside the templated class and its later definition; done means this example parses correctly with a regression check for the reported case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, python
- Domain
- compilers, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100