[Bug libstdc++/103923] is_invocable inexplicably fails

2025-05-01 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103923 Andrew Pinski changed: What|Removed |Added CC||piersh at hotmail dot com --- Comment #

[Bug libstdc++/103923] is_invocable inexplicably fails

2024-12-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103923 Andrew Pinski changed: What|Removed |Added CC||one.last.kiss at outlook dot com --- C

[Bug libstdc++/103923] is_invocable inexplicably fails

2022-01-06 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103923 --- Comment #9 from Jonathan Wakely --- Maybe we don't actually need to do anything here. As the original testcase shows, trying to actually use the map is still ill-formed: //T().m[T::K()]; // for extra fun I'm not going to work on th

[Bug libstdc++/103923] is_invocable inexplicably fails

2022-01-06 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103923 --- Comment #8 from Jonathan Wakely --- I think libc++ just always caches the hash code, which keeps things much simpler.

[Bug libstdc++/103923] is_invocable inexplicably fails

2022-01-06 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103923 Jonathan Wakely changed: What|Removed |Added CC||fdumont at gcc dot gnu.org --- Commen

[Bug libstdc++/103923] is_invocable inexplicably fails

2022-01-06 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103923 --- Comment #6 from Jonathan Wakely --- This is another case of https://wg21.link/cwg2335

[Bug libstdc++/103923] is_invocable inexplicably fails

2022-01-06 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103923 --- Comment #5 from Jonathan Wakely --- Here's a minimal program showing the underlying problem: template struct C { }; struct T { struct H { auto operator()() const { return 0; } }; C c; }; T t; 103923.C:1:43: error: use of 'auto

[Bug libstdc++/103923] is_invocable inexplicably fails

2022-01-06 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103923 Jonathan Wakely changed: What|Removed |Added Last reconfirmed||2022-01-06 Status|UNCONFI

[Bug libstdc++/103923] is_invocable inexplicably fails

2022-01-06 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103923 --- Comment #3 from Jonathan Wakely --- If I change the __cache_default trait to be: template using __cache_default = __bool_constant::value // Do not cache for fast hasher. // Mandatory to have erase not throwing.

[Bug libstdc++/103923] is_invocable inexplicably fails

2022-01-06 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103923 --- Comment #2 from Jonathan Wakely --- The instantiation of unordered_map instantiates this alias: template using __cache_default = __not_<__and_, // Mandatory to have erase not throwing.

[Bug libstdc++/103923] is_invocable inexplicably fails

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