Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gcc: a lot of -Werror=shadow related errors for the Hello, world ! example #1407

Open
romintomasetti opened this issue Aug 30, 2024 · 0 comments

Comments

@romintomasetti
Copy link

Example at

using __tag_t = typename __op_state::__tag_t;
:

/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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant