This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch] Fix libstdc++/9659
- From: Nathan Myers <ncm-nospam at cantrip dot org>
- To: "libstdc++ at gcc dot gnu dot org" <libstdc++ at gcc dot gnu dot org>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 11 Feb 2003 06:41:05 -0800
- Subject: Re: [Patch] Fix libstdc++/9659
- References: <3E48DA25.5010100@unitus.it>
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