https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67008
Bug ID: 67008 Summary: Qualified name-lookup in using-declaration fails Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: anders.granlund.0 at gmail dot com Target Milestone: --- Consider the following program: namespace N { int i; } using namespace N; using ::i; int main() {} Compile it with the following command line: Observe that the following error message is given: prog.cc:3:9: error: 'i' not declared using ::i; ^ The program is well-formed, so this error message is not expected. It seems that the qualified name-lookup inside the using-declaration fails. I tried it with gcc HEAD 6.0.0 201507 here: http://melpon.org/wandbox/permlink/immhNeWFCMcCA800