This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/14021] New: lacking conversion from `std::streampos' to `std::streamoff'


This conversion is required by the standard (see table 88 in §27.4.3.2), the
following doesnt compile with a cvs version (dated 20040124) of gcc-3.4 :

#include <ostream>

int f() {
  std::streamoff off = std::streampos(0);
}

error message : 
error : conversion from `std::streampos' to non-scalar type `std::streamoff'
requested

I don't have direct access to this compiler, I got this error via the Boost
regression tests system.

-- 
           Summary: lacking conversion from `std::streampos' to
                    `std::streamoff'
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: krempp at crans dot ens-cachan dot fr
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: 3.4.0 20040124


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]