[Bug libstdc++/99692] Lookup for operator<< skips global scope

2021-03-21 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99692 --- Comment #7 from Jonathan Wakely --- I mean that the test used in the library code is doing the right thing. I haven't investigated whether the compiler is not handling the lookup correctly, but I don't think there's a libstdc++ bug here.

[Bug libstdc++/99692] Lookup for operator<< skips global scope

2021-03-21 Thread skaniskin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99692 --- Comment #6 from Sergey Kaniskin --- > Which seems correct to me. Users should not be overloading operator<< for > types defined by the standard library anyway. You don't own vector so > you don't get to say how it should be output to

[Bug libstdc++/99692] Lookup for operator<< skips global scope

2021-03-21 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99692 --- Comment #5 from Jonathan Wakely --- (In reply to Andrew Pinski from comment #1) > But by definition at this point operator << does not exist and is not > considered as it is not found via ADL because both std::basic_ostream > and std::vector

[Bug libstdc++/99692] Lookup for operator<< skips global scope

2021-03-21 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99692 --- Comment #4 from Jonathan Wakely --- (In reply to Sergey Kaniskin from comment #3) > I was unsure whether to file it under compiler or stdlibc++ as it’s accepted > by another compilers using stdlibc++. There's no such component, it's

[Bug libstdc++/99692] Lookup for operator<< skips global scope

2021-03-21 Thread skaniskin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99692 --- Comment #3 from Sergey Kaniskin --- (In reply to Andrew Pinski from comment #1) > Right the problem is here (and not with the compiler itself if there is a > problem) I was unsure whether to file it under compiler or stdlibc++ as it’s

[Bug libstdc++/99692] Lookup for operator<< skips global scope

2021-03-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99692 --- Comment #2 from Andrew Pinski --- (In reply to Andrew Pinski from comment #1) > Right the problem is here (and not with the compiler itself if there is a > problem): > /home/ubuntu/upstream-gcc/include/c++/11.0.1/ostream:747:46: error: no

[Bug libstdc++/99692] Lookup for operator<< skips global scope

2021-03-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99692 Andrew Pinski changed: What|Removed |Added Component|c++ |libstdc++ --- Comment #1 from Andrew