https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82262
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- Author: redi Date: Wed Sep 20 14:22:29 2017 New Revision: 253015 URL: https://gcc.gnu.org/viewcvs?rev=253015&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: branches/gcc-7-branch/libstdc++-v3/ChangeLog branches/gcc-7-branch/libstdc++-v3/include/std/optional branches/gcc-7-branch/libstdc++-v3/testsuite/20_util/optional/hash.cc