public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/52931] New: std::hash shouldn't be defined for unknown types
@ 2012-04-11 7:43 marc.glisse at normalesup dot org
2012-04-11 10:02 ` [Bug libstdc++/52931] " paolo.carlini at oracle dot com
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: marc.glisse at normalesup dot org @ 2012-04-11 7:43 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52931
Bug #: 52931
Summary: std::hash shouldn't be defined for unknown types
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: marc.glisse@normalesup.org
As explained by Daniel Krügler in c++std-lib-32420 and nearby messages, the
default definition of std::hash is non-standard, it is supposed to be undefined
so we can test with sfinae whether hash was specialized for some type.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libstdc++/52931] std::hash shouldn't be defined for unknown types
2012-04-11 7:43 [Bug libstdc++/52931] New: std::hash shouldn't be defined for unknown types marc.glisse at normalesup dot org
@ 2012-04-11 10:02 ` paolo.carlini at oracle dot com
2012-04-11 11:28 ` paolo at gcc dot gnu.org
2012-04-11 11:30 ` paolo.carlini at oracle dot com
2 siblings, 0 replies; 4+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-04-11 10:02 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52931
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2012-04-11
AssignedTo|unassigned at gcc dot |paolo.carlini at oracle dot
|gnu.org |com
Target Milestone|--- |4.8.0
Ever Confirmed|0 |1
--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-04-11 10:01:56 UTC ---
No big deal.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libstdc++/52931] std::hash shouldn't be defined for unknown types
2012-04-11 7:43 [Bug libstdc++/52931] New: std::hash shouldn't be defined for unknown types marc.glisse at normalesup dot org
2012-04-11 10:02 ` [Bug libstdc++/52931] " paolo.carlini at oracle dot com
@ 2012-04-11 11:28 ` paolo at gcc dot gnu.org
2012-04-11 11:30 ` paolo.carlini at oracle dot com
2 siblings, 0 replies; 4+ messages in thread
From: paolo at gcc dot gnu.org @ 2012-04-11 11:28 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52931
--- Comment #2 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2012-04-11 11:27:57 UTC ---
Author: paolo
Date: Wed Apr 11 11:27:50 2012
New Revision: 186310
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=186310
Log:
2012-04-11 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/52931
* include/bits/functional_hash.h (struct hash): Remove definition.
* testsuite/20_util/hash/52931.cc: New.
Added:
trunk/libstdc++-v3/testsuite/20_util/hash/52931.cc
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/bits/functional_hash.h
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libstdc++/52931] std::hash shouldn't be defined for unknown types
2012-04-11 7:43 [Bug libstdc++/52931] New: std::hash shouldn't be defined for unknown types marc.glisse at normalesup dot org
2012-04-11 10:02 ` [Bug libstdc++/52931] " paolo.carlini at oracle dot com
2012-04-11 11:28 ` paolo at gcc dot gnu.org
@ 2012-04-11 11:30 ` paolo.carlini at oracle dot com
2 siblings, 0 replies; 4+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-04-11 11:30 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52931
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-04-11 11:29:34 UTC ---
Done.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-04-11 11:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-11 7:43 [Bug libstdc++/52931] New: std::hash shouldn't be defined for unknown types marc.glisse at normalesup dot org
2012-04-11 10:02 ` [Bug libstdc++/52931] " paolo.carlini at oracle dot com
2012-04-11 11:28 ` paolo at gcc dot gnu.org
2012-04-11 11:30 ` paolo.carlini at oracle dot com
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).