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

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |manu at gcc dot gnu.org

--- Comment #3 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to Jason Merrill from comment #2)
> The warning seems correct to me; within the scope of myenum (i.e. in the
> initializers of other enumerators) the foo enumerator shadows the global foo.

But the global foo is a type while myenum::foo is not a type. Is there any
context where they can be used interchangeably?

enum class myenum
{
  bar = int 
};

doesn't make sense.

Reply via email to