[Bug libstdc++/12065] New: Strange fpos arithmetic.

peturr02 at ru dot is gcc-bugzilla@gcc.gnu.org
Tue Aug 26 13:24:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: Strange fpos arithmetic.
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: peturr02 at ru dot is
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu

fpos::operator+ and fpos::operator- are not declared const. Furthermore, there
is no operator- taking two arguments of type fpos. This combined with
fpos::operator streamoff() causes some really weird behaviour.



More information about the Gcc-bugs mailing list