This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14021] New: lacking conversion from `std::streampos' to `std::streamoff'
- From: "krempp at crans dot ens-cachan dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Feb 2004 21:52:57 -0000
- Subject: [Bug c++/14021] New: lacking conversion from `std::streampos' to `std::streamoff'
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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