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

            Bug ID: 61492
           Summary: Nested-name-specifier lookup finds function
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: potswa at mac dot com

Name lookup of a nested-name-specifier should only find entities with
associated scopes: namespaces, classes, and enumerators. GCC allows a function
name to hide an enumerator. (Classes and namespaces are correctly not hidden.)

enum e { m };
e e(), q = e::m; // Error: ā€˜e’ is not a class, namespace, or enumeration

Reply via email to