public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/24799]  New: std::tr1::hash missing inheritance
@ 2005-11-11 16:11 john at johnmaddock dot co dot uk
  2005-11-11 16:16 ` [Bug libstdc++/24799] " pcarlini at suse dot de
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: john at johnmaddock dot co dot uk @ 2005-11-11 16:11 UTC (permalink / raw)
  To: gcc-bugs

The function object std::tr1::hash is required to inherit from
std::unary_function, but the current implementation doesn't do so.  It's member
typedefs result_type and argument_type are therefore not present.

Regards, John Maddock.


-- 
           Summary: std::tr1::hash missing inheritance
           Product: gcc
           Version: 4.0.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: john at johnmaddock dot co dot uk
 GCC build triplet: linux.x86
  GCC host triplet: linux.x86
GCC target triplet: linux.x86


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24799


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug libstdc++/24799] std::tr1::hash missing inheritance
  2005-11-11 16:11 [Bug libstdc++/24799] New: std::tr1::hash missing inheritance john at johnmaddock dot co dot uk
@ 2005-11-11 16:16 ` pcarlini at suse dot de
  2005-11-11 16:45 ` pcarlini at suse dot de
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pcarlini at suse dot de @ 2005-11-11 16:16 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pcarlini at suse dot de  2005-11-11 16:16 -------
Confirmed, thanks a lot!


-- 

pcarlini at suse dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-11-11 16:16:29
               date|                            |
   Target Milestone|---                         |4.0.3


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24799


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug libstdc++/24799] std::tr1::hash missing inheritance
  2005-11-11 16:11 [Bug libstdc++/24799] New: std::tr1::hash missing inheritance john at johnmaddock dot co dot uk
  2005-11-11 16:16 ` [Bug libstdc++/24799] " pcarlini at suse dot de
@ 2005-11-11 16:45 ` pcarlini at suse dot de
  2005-11-11 20:10 ` paolo at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pcarlini at suse dot de @ 2005-11-11 16:45 UTC (permalink / raw)
  To: gcc-bugs



-- 

pcarlini at suse dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pcarlini at suse dot de
                   |dot org                     |
             Status|NEW                         |ASSIGNED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24799


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug libstdc++/24799] std::tr1::hash missing inheritance
  2005-11-11 16:11 [Bug libstdc++/24799] New: std::tr1::hash missing inheritance john at johnmaddock dot co dot uk
  2005-11-11 16:16 ` [Bug libstdc++/24799] " pcarlini at suse dot de
  2005-11-11 16:45 ` pcarlini at suse dot de
@ 2005-11-11 20:10 ` paolo at gcc dot gnu dot org
  2005-11-13 12:19 ` paolo at gcc dot gnu dot org
  2005-11-13 12:21 ` pcarlini at suse dot de
  4 siblings, 0 replies; 6+ messages in thread
From: paolo at gcc dot gnu dot org @ 2005-11-11 20:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from paolo at gcc dot gnu dot org  2005-11-11 20:10 -------
Subject: Bug 24799

Author: paolo
Date: Fri Nov 11 20:10:20 2005
New Revision: 106796

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=106796
Log:
2005-11-11  Paolo Carlini  <pcarlini@suse.de>

        PR libstdc++/24799
        * include/tr1/functional (hash): Inherit from std::unary_function.
        * testsuite/tr1/6_containers/unordered/hash/24799.cc: New.

        PR libstdc++/24805
        * include/tr1/boost_shared_ptr.h (swap(shared_ptr<>&, shared_ptr<>&),
        swap(weak_ptr<>&, weak_ptr<>&)): Move inside namespace tr1.
        * testsuite/tr1/2_general_utilities/memory/shared_ptr/modifiers/
        24805.cc: New.

        PR libstdc++/24809
        * include/tr1/type_traits (__is_polymorhpic_helper): Adjust destructor.
        * testsuite/tr1/4_metaprogramming/type_properties/is_polymorphic/
        24809.cc: New.


Added:
   
trunk/libstdc++-v3/testsuite/tr1/2_general_utilities/memory/shared_ptr/modifiers/24805.cc
   
trunk/libstdc++-v3/testsuite/tr1/4_metaprogramming/type_properties/is_polymorphic/24809.cc
    trunk/libstdc++-v3/testsuite/tr1/6_containers/unordered/hash/
    trunk/libstdc++-v3/testsuite/tr1/6_containers/unordered/hash/24799.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/tr1/boost_shared_ptr.h
    trunk/libstdc++-v3/include/tr1/functional
    trunk/libstdc++-v3/include/tr1/type_traits


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24799


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug libstdc++/24799] std::tr1::hash missing inheritance
  2005-11-11 16:11 [Bug libstdc++/24799] New: std::tr1::hash missing inheritance john at johnmaddock dot co dot uk
                   ` (2 preceding siblings ...)
  2005-11-11 20:10 ` paolo at gcc dot gnu dot org
@ 2005-11-13 12:19 ` paolo at gcc dot gnu dot org
  2005-11-13 12:21 ` pcarlini at suse dot de
  4 siblings, 0 replies; 6+ messages in thread
From: paolo at gcc dot gnu dot org @ 2005-11-13 12:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from paolo at gcc dot gnu dot org  2005-11-13 12:19 -------
Subject: Bug 24799

Author: paolo
Date: Sun Nov 13 12:19:01 2005
New Revision: 106864

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=106864
Log:
2005-11-13  Douglas Gregor  <doug.gregor@gmail.com>

        PR libstdc++/24818
        * include/tr1/ref_wrap_iterate.h
        (reference_wrapper::operator()()): Don't dereferene the result of
        get() before calling it; it's already a reference.
        * testsuite/tr1/3_function_objects/reference_wrapper/invoke.cc:
        Test nullary calls to reference_wrappers.

2005-11-13  Paolo Carlini  <pcarlini@suse.de>

        PR libstdc++/24799
        * include/tr1/functional (hash): Inherit from std::unary_function.
        * testsuite/tr1/6_containers/unordered/hash/24799.cc: New.

        PR libstdc++/24805
        * include/tr1/boost_shared_ptr.h (swap(shared_ptr<>&, shared_ptr<>&),
        swap(weak_ptr<>&, weak_ptr<>&)): Move inside namespace tr1.
        * testsuite/tr1/2_general_utilities/memory/shared_ptr/modifiers/
        24805.cc: New.

        PR libstdc++/24809
        * include/tr1/type_traits (__is_polymorhpic_helper): Adjust destructor.
        * testsuite/tr1/4_metaprogramming/type_properties/is_polymorphic/
        24809.cc: New.

Added:
   
branches/gcc-4_0-branch/libstdc++-v3/testsuite/tr1/2_general_utilities/memory/shared_ptr/modifiers/24805.cc
   
branches/gcc-4_0-branch/libstdc++-v3/testsuite/tr1/4_metaprogramming/type_properties/is_polymorphic/24809.cc
   
branches/gcc-4_0-branch/libstdc++-v3/testsuite/tr1/6_containers/unordered/hash/
   
branches/gcc-4_0-branch/libstdc++-v3/testsuite/tr1/6_containers/unordered/hash/24799.cc
Modified:
    branches/gcc-4_0-branch/libstdc++-v3/ChangeLog
    branches/gcc-4_0-branch/libstdc++-v3/include/tr1/boost_shared_ptr.h
    branches/gcc-4_0-branch/libstdc++-v3/include/tr1/functional
    branches/gcc-4_0-branch/libstdc++-v3/include/tr1/ref_wrap_iterate.h
    branches/gcc-4_0-branch/libstdc++-v3/include/tr1/type_traits
   
branches/gcc-4_0-branch/libstdc++-v3/testsuite/tr1/3_function_objects/reference_wrapper/invoke.cc


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24799


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug libstdc++/24799] std::tr1::hash missing inheritance
  2005-11-11 16:11 [Bug libstdc++/24799] New: std::tr1::hash missing inheritance john at johnmaddock dot co dot uk
                   ` (3 preceding siblings ...)
  2005-11-13 12:19 ` paolo at gcc dot gnu dot org
@ 2005-11-13 12:21 ` pcarlini at suse dot de
  4 siblings, 0 replies; 6+ messages in thread
From: pcarlini at suse dot de @ 2005-11-13 12:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pcarlini at suse dot de  2005-11-13 12:21 -------
Fixed for 4.0.3.


-- 

pcarlini at suse dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24799


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-11-13 12:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-11 16:11 [Bug libstdc++/24799] New: std::tr1::hash missing inheritance john at johnmaddock dot co dot uk
2005-11-11 16:16 ` [Bug libstdc++/24799] " pcarlini at suse dot de
2005-11-11 16:45 ` pcarlini at suse dot de
2005-11-11 20:10 ` paolo at gcc dot gnu dot org
2005-11-13 12:19 ` paolo at gcc dot gnu dot org
2005-11-13 12:21 ` pcarlini at suse dot de

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).