type_info requires non-standard constructor to get vftable
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start by reading the type_info declaration and the build or compiler configuration for nxdk; the issue does not name a file or test. Check whether LLVM emits the required vftable when the standard copy constructor and assignment operator are deleted, and compare the behavior with GCC's typeinfo implementation linked in the issue. Done means the behavior is understood and the project has a standards-compliant resolution or a documented reason for the workaround.
Written by the indexing model from the issue text.
Description
C++11 specifies that the copy constructor and assignment operator of type_info are to be deleted. However, when no constructor exists, LLVM does not generate a vftable for that class. Our current workaround is to have a non-standard private constructor.
My suspicion is that this is an issue with LLVM optimizations - it probably assumes that the vftable for this class will never be required when no objects of this type can be constructed at runtime. This is a reasonable assumption, but not type_info is a special case. I'm not sure whether this is considered a bug - interestingly, gcc seems to have a non-standard constructor as well.
- Dominant language
- C
- Stars
- 600
- Forks
- 97
- Avg merge
- 11h 48m
- Merged PRs (30d)
- 2
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- No contributing 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.
More from XboxDev/nxdk
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
-
Use faster memcpyOpen
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Difficulty 1/5 Under an hour Newbie friendliness 38/100
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
libsndfile/libsndfile#1239 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100