[v3 PATCH] PR libstdc++/60970, implement LWG 2148

Jonathan Wakely jwakely@redhat.com
Wed Jul 29 12:42:00 GMT 2015


On 25/07/15 22:01 +0300, Ville Voutilainen wrote:
>Tested on Linux-PPC64.
>
>The proposed resolution of the issue doesn't really say whether our
>regression test for PR libstdc++/52931 should remain valid. However,
>it doesn't say that we shouldn't keep it valid, either. This approach
>keeps it valid, but provides support for hashing enums. It took a while
>to figure out suitable jiggery-pokery to make it so, but this approach
>passes the testsuite without regressions. I considered an alternative
>alias-template-based approach, but while that attempt would've worked
>with our current front-end, it would not have worked on clang (and
>it's thus far unclear whether it was intended to work by the language
>rules).

Committed with a minor change to put is_enum<_Tp>::value as a default
template argument of __hash_enum and add a comment.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 3114 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20150729/eccf55d8/attachment.bin>


More information about the Libstdc++ mailing list