This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/26950] New: Error diagnostic not issued for unacceptable result of lookup for a name used in a nested-name-specifier
- From: "widman at gimpel dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Mar 2006 19:20:13 -0000
- Subject: [Bug c++/26950] New: Error diagnostic not issued for unacceptable result of lookup for a name used in a nested-name-specifier
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following should elicit an error during processing of e0's initializer:
namespace N {
const int a = 42;
enum N { e0 = N::a };
}
... because 3.4.3p1 [basic.lookup.qual] indicates that the enumeration [tag]
name N should be found during lookup in the nested-name-specifier and renders
the program ill-formed.
--
Summary: Error diagnostic not issued for unacceptable result of
lookup for a name used in a nested-name-specifier
Product: gcc
Version: 4.0.1
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: widman at gimpel dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26950