https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119714
Johannes Larsen <mail at johslarsen dot net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mail at johslarsen dot net --- Comment #2 from Johannes Larsen <mail at johslarsen dot net> --- There seems to be a similar issue related to comparisons of iterators for containers of std::expected. This minimal examples gives the same GCC 15/trunk warning: #include <expected> #include <vector> int main(int argc, char *argv[]) { std::vector<std::expected<int,int>> results{}; return std::begin(results) == std::end(results); }