https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55776

Sergey Semushin <Predelnik at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Predelnik at gmail dot com

--- Comment #8 from Sergey Semushin <Predelnik at gmail dot com> ---
Encountered this warning and it makes me wonder why there is no warning for
naming variable inside some namespace with the same name as a class in outer
namespace, like:
struct C {};

namespace D
{
    int C;
}

This case is very similar to enum class one and I believe it's a lot easier to
somehow be confused here due to shadowing however no warning with Wshadow is
issued this case. Personally I would prefer to not receive warning in both
cases.

Reply via email to