https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82262
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- Author: redi Date: Wed Sep 20 13:24:45 2017 New Revision: 253010 URL: https://gcc.gnu.org/viewcvs?rev=253010&root=gcc&view=rev Log: PR libstdc++/82262 fix std::hash<std::optional<const T>> PR libstdc++/82262 * include/std/optional (__optional_hash_call_base): Add template parameter for remove_const_t<_Tp> and use it consistently. * testsuite/20_util/optional/hash.cc: Test optional<const T>. Modified: trunk/libstdc++-v3/ChangeLog trunk/libstdc++-v3/include/std/optional trunk/libstdc++-v3/testsuite/20_util/optional/hash.cc