public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/107800] New: confusing message with to_address in C++17
@ 2022-11-22  1:27 hewillk at gmail dot com
  2022-11-22  4:37 ` [Bug c++/107800] " pinskia at gcc dot gnu.org
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: hewillk at gmail dot com @ 2022-11-22  1:27 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 107800
           Summary: confusing message with to_address in C++17
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hewillk at gmail dot com
  Target Milestone: ---

When I try to use C++20 to_address in C++17 code, the compiler error message is
confusing:

<source>:2:1: note: 'std::to_address' is defined in header '<memory>'; did you
forget to '#include <memory>'?
    1 | #include <memory>
  +++ |+#include <memory>
    2 | 

This error message should be removed since I did include <memory>.

https://godbolt.org/z/T1PEnTdGY

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

end of thread, other threads:[~2024-05-22 20:00 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-22  1:27 [Bug c++/107800] New: confusing message with to_address in C++17 hewillk at gmail dot com
2022-11-22  4:37 ` [Bug c++/107800] " pinskia at gcc dot gnu.org
2023-04-26  6:57 ` rguenth at gcc dot gnu.org
2023-07-27  9:24 ` rguenth at gcc dot gnu.org
2023-09-07 10:35 ` amatuladeeba at gmail dot com
2023-09-07 13:00 ` redi at gcc dot gnu.org
2023-09-08  5:02 ` amatuladeeba at gmail dot com
2024-05-21  9:13 ` jakub at gcc dot gnu.org
2024-05-21 12:16 ` redi at gcc dot gnu.org
2024-05-21 12:18 ` redi at gcc dot gnu.org
2024-05-21 20:59 ` cvs-commit at gcc dot gnu.org
2024-05-21 21:53 ` cvs-commit at gcc dot gnu.org
2024-05-21 22:03 ` cvs-commit at gcc dot gnu.org
2024-05-21 22:04 ` redi at gcc dot gnu.org
2024-05-22 20:00 ` 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).