[Patch] Fix libstdc++/9659
Nathan Myers
ncm-nospam@cantrip.org
Tue Feb 11 14:41:00 GMT 2003
On Tue, Feb 11, 2003 at 12:10:29PM +0100, Paolo Carlini wrote:
> Weird that it only shows up at -O3 and could not be noticed
> running the testsuite.
>
> If nobody objects will apply today to both trunk and 3_3.
> ! // Seek successful.
> ! __ret = __tmp +
> ! std::max(this->_M_out_cur, this->_M_in_cur) - _M_filepos;
> --- 456,467 ----
> ! {
> ! // Seek successful.
> ! __ret = __tmp;
> ! __ret +=
> ! std::max(this->_M_out_cur, this->_M_in_cur) - _M_filepos;
> ! }
This looks to me like a grave compiler bug. It should be fixed in the
compiler, not in the library. In particular we shouldn't release any
new compiler version that has this bug.
Nathan Myers
ncm-nospam@cantrip.org
More information about the Gcc
mailing list