`gcc`: a lot of `-Werror=shadow` related errors for the `Hello, world !` example
Open
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 2.4k
- Forks
- 270
- Avg merge
- 3d 6h
- Merged PRs (30d)
- 39
Description
/workspaces/.../external/stdexec/include/exec/../stdexec/__detail/__basic_sender.hpp: In member function 'void stdexec::__detail::__op_state<_Sexpr, _Receiver>::start() &':
/workspaces/.../external/stdexec/include/exec/../stdexec/__detail/__basic_sender.hpp:408:15: error: declaration of 'using __tag_t = using __tag_t = typename decltype (__mdecay<_Ty>)::__f<_Ty>::__desc_t::__tag' shadows a member of 'stdexec::__detail::__op_state<_Sexpr, _Receiver>' [-Werror=shadow]
408 | using __tag_t = typename __op_state::__tag_t;
| ^~~~~~~
/workspaces/.../external/stdexec/include/exec/../stdexec/__detail/__basic_sender.hpp:382:13: note: shadowed declaration is here
382 | using __tag_t = typename __desc_t::__tag;
| ^~~~~~~
I guess that this should be resolved, as it might hide bugs ?
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
Start with include/stdexec/__detail/__basic_sender.hpp, especially the declarations around lines 382 and 408 shown in the report, and build the Hello, world! example with GCC and -Werror=shadow. Find the other shadow diagnostics in the example build and resolve them without changing behavior; done means the example builds without these errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100