https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103923
Andrew Pinski changed:
What|Removed |Added
CC||piersh at hotmail dot com
--- Comment #
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
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
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.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103923
Jonathan Wakely changed:
What|Removed |Added
CC||fdumont at gcc dot gnu.org
--- Commen
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103923
--- Comment #6 from Jonathan Wakely ---
This is another case of https://wg21.link/cwg2335
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103923
Jonathan Wakely changed:
What|Removed |Added
Last reconfirmed||2022-01-06
Status|UNCONFI
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.
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.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103923
Andrew Pinski changed:
What|Removed |Added
Component|c++ |libstdc++
--- Comment #1 from Andrew Pi
11 matches
Mail list logo