public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/60970] New: Support std::hash with enum types (LWG 2148)
@ 2014-04-25 23:28 gromer at google dot com
2014-04-26 0:11 ` [Bug libstdc++/60970] " redi at gcc dot gnu.org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: gromer at google dot com @ 2014-04-25 23:28 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60970
Bug ID: 60970
Summary: Support std::hash with enum types (LWG 2148)
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: gromer at google dot com
std::hash<T> appears to be undefined when T is an enum type, contrary to the
resolution of LWG 2148
(http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#2148).
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libstdc++/60970] Support std::hash with enum types (LWG 2148)
2014-04-25 23:28 [Bug libstdc++/60970] New: Support std::hash with enum types (LWG 2148) gromer at google dot com
@ 2014-04-26 0:11 ` redi at gcc dot gnu.org
2014-05-13 17:48 ` ppluzhnikov at google dot com
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: redi at gcc dot gnu.org @ 2014-04-26 0:11 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60970
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2014-04-26
Ever confirmed|0 |1
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libstdc++/60970] Support std::hash with enum types (LWG 2148)
2014-04-25 23:28 [Bug libstdc++/60970] New: Support std::hash with enum types (LWG 2148) gromer at google dot com
2014-04-26 0:11 ` [Bug libstdc++/60970] " redi at gcc dot gnu.org
@ 2014-05-13 17:48 ` ppluzhnikov at google dot com
2015-07-21 22:42 ` ville.voutilainen at gmail dot com
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: ppluzhnikov at google dot com @ 2014-05-13 17:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60970
Paul Pluzhnikov <ppluzhnikov at google dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ppluzhnikov at google dot com
--- Comment #1 from Paul Pluzhnikov <ppluzhnikov at google dot com> ---
Google ref: b/8985947
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libstdc++/60970] Support std::hash with enum types (LWG 2148)
2014-04-25 23:28 [Bug libstdc++/60970] New: Support std::hash with enum types (LWG 2148) gromer at google dot com
` (2 preceding siblings ...)
2015-07-21 22:42 ` ville.voutilainen at gmail dot com
@ 2015-07-21 22:42 ` ville.voutilainen at gmail dot com
2015-07-25 19:24 ` ville.voutilainen at gmail dot com
2015-07-29 12:42 ` redi at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: ville.voutilainen at gmail dot com @ 2015-07-21 22:42 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60970
Ville Voutilainen <ville.voutilainen at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ville.voutilainen at gmail dot com
Assignee|unassigned at gcc dot gnu.org |ville.voutilainen at gmail dot com
--- Comment #2 from Ville Voutilainen <ville.voutilainen at gmail dot com> ---
Mine.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libstdc++/60970] Support std::hash with enum types (LWG 2148)
2014-04-25 23:28 [Bug libstdc++/60970] New: Support std::hash with enum types (LWG 2148) gromer at google dot com
2014-04-26 0:11 ` [Bug libstdc++/60970] " redi at gcc dot gnu.org
2014-05-13 17:48 ` ppluzhnikov at google dot com
@ 2015-07-21 22:42 ` ville.voutilainen at gmail dot com
2015-07-21 22:42 ` ville.voutilainen at gmail dot com
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: ville.voutilainen at gmail dot com @ 2015-07-21 22:42 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60970
Ville Voutilainen <ville.voutilainen at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libstdc++/60970] Support std::hash with enum types (LWG 2148)
2014-04-25 23:28 [Bug libstdc++/60970] New: Support std::hash with enum types (LWG 2148) gromer at google dot com
` (3 preceding siblings ...)
2015-07-21 22:42 ` ville.voutilainen at gmail dot com
@ 2015-07-25 19:24 ` ville.voutilainen at gmail dot com
2015-07-29 12:42 ` redi at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: ville.voutilainen at gmail dot com @ 2015-07-25 19:24 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60970
--- Comment #3 from Ville Voutilainen <ville.voutilainen at gmail dot com> ---
Patch available: https://gcc.gnu.org/ml/gcc-patches/2015-07/msg02162.html
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libstdc++/60970] Support std::hash with enum types (LWG 2148)
2014-04-25 23:28 [Bug libstdc++/60970] New: Support std::hash with enum types (LWG 2148) gromer at google dot com
` (4 preceding siblings ...)
2015-07-25 19:24 ` ville.voutilainen at gmail dot com
@ 2015-07-29 12:42 ` redi at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: redi at gcc dot gnu.org @ 2015-07-29 12:42 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60970
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Wed Jul 29 12:41:23 2015
New Revision: 226347
URL: https://gcc.gnu.org/viewcvs?rev=226347&root=gcc&view=rev
Log:
2015-07-29 Ville Voutilainen <ville.voutilainen@gmail.com>
PR libstdc++/60970
* include/bits/functional_hash.h (__hash_enum): New.
(hash): Derive from __hash_enum.
* testsuite/20_util/hash/60970.cc: New.
Added:
trunk/libstdc++-v3/testsuite/20_util/hash/60970.cc
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/bits/functional_hash.h
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2015-07-29 12:42 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-25 23:28 [Bug libstdc++/60970] New: Support std::hash with enum types (LWG 2148) gromer at google dot com
2014-04-26 0:11 ` [Bug libstdc++/60970] " redi at gcc dot gnu.org
2014-05-13 17:48 ` ppluzhnikov at google dot com
2015-07-21 22:42 ` ville.voutilainen at gmail dot com
2015-07-21 22:42 ` ville.voutilainen at gmail dot com
2015-07-25 19:24 ` ville.voutilainen at gmail dot com
2015-07-29 12:42 ` redi at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).