tr1::reference_wrapper<T>::operator()() should not dereference get() before
calling the function object, because get() returns a reference (not a pointer).


-- 
           Summary: tr1::reference_wrapper improperly calls nullary function
                    objects
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: doug dot gregor at gmail dot com
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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

Reply via email to