public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/100384] New: Compiling in c++17 mode breaks compilation of functions named visit()
@ 2021-05-02 15:38 aacid at kde dot org
  2021-05-02 15:38 ` [Bug c++/100384] " aacid at kde dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: aacid at kde dot org @ 2021-05-02 15:38 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 100384
           Summary: Compiling in c++17 mode breaks compilation of
                    functions named visit()
           Product: gcc
           Version: 10.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: aacid at kde dot org
  Target Milestone: ---

Created attachment 50733
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50733&action=edit
main.cpp

The attached code fails to compile with 

g++ --std=c++17 main.cpp 

I've tried with gcc 11.1 too and it fails too.

To me it seems a bug in the implementation in which std::visit is leaking into
the non std:: namespace, but maybe it's a bug in C++ specification?

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

end of thread, other threads:[~2021-06-18 14:46 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-02 15:38 [Bug c++/100384] New: Compiling in c++17 mode breaks compilation of functions named visit() aacid at kde dot org
2021-05-02 15:38 ` [Bug c++/100384] " aacid at kde dot org
2021-05-03 12:59 ` [Bug libstdc++/100384] " aacid at kde dot org
2021-05-03 14:08 ` redi at gcc dot gnu.org
2021-05-03 14:44 ` ppalka at gcc dot gnu.org
2021-05-03 19:51 ` redi at gcc dot gnu.org
2021-05-03 20:02 ` redi at gcc dot gnu.org
2021-05-04 11:19 ` cvs-commit at gcc dot gnu.org
2021-05-06 13:06 ` cvs-commit at gcc dot gnu.org
2021-06-18 12:56 ` cvs-commit at gcc dot gnu.org
2021-06-18 14:43 ` cvs-commit at gcc dot gnu.org
2021-06-18 14:46 ` redi 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).