C++ compilation error because of uninitialized const member
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- cpp
- Domain
- embedded-iot
Research direction
Start in xdppsu.h around line 140 and inspect the XVidC_VideoTimingMode definition and its use in XDpPsu_MainStreamAttributes. Reproduce C++ instantiation of XDpPsu, then verify that the header no longer produces the reported deleted-constructor and uninitialized-const-member errors.
Written by the indexing model from the issue text.
Description
Instantiating XDpPsu from xdppsu.h in a C++ project results in the following errors:
use of deleted function 'XDpPsu::XDpPsu()'
use of deleted function 'XDpPsu_MainStreamAttributes::XDpPsu_MainStreamAttributes()'
use of deleted function 'XVidC_VideoTimingMode::XVidC_VideoTimingMode()'
uninitialized const member in 'struct XVidC_VideoTimingMode'
'const char XVidC_VideoTimingMode::Name [21]' should be initialized
The issue is that XDpPsu_MainStreamAttributes struct includes XVidC_VideoTimingMode struct as a member variable by value, whereas XVidC_VideoTimingMode is meant to be used as a pointer to a constant element in a timing array. XVidC_VideoTimingMode cannot be default-constructed because its const char Name[21] is not initialized.
- Dominant language
- HTML
- Stars
- 1.2k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
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.
More from Xilinx/embeddedsw
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Xilinx/embeddedsw#388 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Xilinx/embeddedsw#385 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Xilinx/embeddedsw#374 · 3 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Xilinx/embeddedsw#287 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Xilinx/embeddedsw#235 ·
All issues in Xilinx/embeddedsw
Similar issues
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
[adam] AdamNet network read doesn't cap to MAX_ADAM_PACKET_LEN, overflows client receive buffers Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
FujiNetWIFI/fujinet-firmware#1649 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
espressif/esp-iot-solution#786 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100