[Bug c++/61492] New: Nested-name-specifier lookup finds function
potswa at mac dot com
gcc-bugzilla@gcc.gnu.org
Fri Jun 13 03:30:00 GMT 2014
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
More information about the Gcc-bugs
mailing list