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