public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/100084] New: using enum lookup isn't type-only
@ 2021-04-14 18:03 barry.revzin at gmail dot com
  2021-04-14 18:12 ` [Bug c++/100084] " barry.revzin at gmail dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: barry.revzin at gmail dot com @ 2021-04-14 18:03 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 100084
           Summary: using enum lookup isn't type-only
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: barry.revzin at gmail dot com
  Target Milestone: ---

>From Stack Avarflaw (https://stackoverflow.com/q/67096550/2069064):

namespace A { enum A {}; };
using namespace A;
using enum A;

gcc trunk rejects this lookup as ambiguous, between the namespace A and the
enum A. But our lookup in this context should be type-only, so the namespace A
should not a candidate.

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

end of thread, other threads:[~2021-12-24 21:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-14 18:03 [Bug c++/100084] New: using enum lookup isn't type-only barry.revzin at gmail dot com
2021-04-14 18:12 ` [Bug c++/100084] " barry.revzin at gmail dot com
2021-04-14 18:18 ` mpolacek at gcc dot gnu.org
2021-04-15  5:22 ` hewillk at gmail dot com
2021-12-24 21:27 ` pinskia at gcc dot gnu.org

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).