public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/67008] New: Qualified name-lookup in using-declaration fails
@ 2015-07-25 17:29 anders.granlund.0 at gmail dot com
  2015-07-25 17:30 ` [Bug c++/67008] " anders.granlund.0 at gmail dot com
  0 siblings, 1 reply; 2+ messages in thread
From: anders.granlund.0 at gmail dot com @ 2015-07-25 17:29 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug c++/67008] Qualified name-lookup in using-declaration fails
  2015-07-25 17:29 [Bug c++/67008] New: Qualified name-lookup in using-declaration fails anders.granlund.0 at gmail dot com
@ 2015-07-25 17:30 ` anders.granlund.0 at gmail dot com
  0 siblings, 0 replies; 2+ messages in thread
From: anders.granlund.0 at gmail dot com @ 2015-07-25 17:30 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Anders Granlund <anders.granlund.0 at gmail dot com> ---
Forgot the command line:

  g++ prog.cc -std=c++14 -pedantic-errors


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-07-25 17:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-25 17:29 [Bug c++/67008] New: Qualified name-lookup in using-declaration fails anders.granlund.0 at gmail dot com
2015-07-25 17:30 ` [Bug c++/67008] " anders.granlund.0 at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).