From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18841 invoked by alias); 13 Feb 2003 21:36:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 18827 invoked by uid 71); 13 Feb 2003 21:36:00 -0000 Date: Thu, 13 Feb 2003 21:36:00 -0000 Message-ID: <20030213213600.18826.qmail@sources.redhat.com> To: paolo@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Gabriel Dos Reis Subject: Re: libstdc++/9580: basic_filebuf<> with custom traits_type fails to link Reply-To: Gabriel Dos Reis X-SW-Source: 2003-02/txt/msg00596.txt.bz2 List-Id: The following reply was made to PR libstdc++/9580; it has been noted by GNATS. From: Gabriel Dos Reis To: Paolo Carlini Cc: gcc-gnats@gcc.gnu.org, peturr02@ru.is, gcc-bugs@gcc.gnu.org Subject: Re: libstdc++/9580: basic_filebuf<> with custom traits_type fails to link Date: 13 Feb 2003 22:27:40 +0100 Paolo Carlini writes: | Gabriel Dos Reis wrote: | | >This is something we should fix. However I don't have necessary time | >next week to work on it. I'm sorry. | > | Well, so *I* will fix it ;) | | Seriously, the PR is regression from 3.0.x, "due" to this checkin of | yours and Aha, I'm a silly boy :-( | Benjamin, apparently | (the problem is with std::basic_filebuf::_M_underflow_common(bool): | | 2002-07-30 Benjamin Kosnik | Gabriel Dos Reis | | ... | | * include/std/std_fstream.h: Declare _M_underflow_common | specializations. | * src/fstream.cc: New. Add _M_underflow_common specializations. | * include/bits/fstream.tcc (filebuf::close): Use traits_type. | (filebuf::_M_underflow_common(bool)): Remove generic version, as | sys_ungetc and custom int_types don't get along. | | ... | | Can you please help me a bit understanding these Changelog entries? If I recall correctly, this change was made because of some differences in the way a narrow character stream based on char_traits behaves and the way the general Traits may behave. At that point, I seem to recall that the goal was to have a general implementation of that function plus the special case. I'll have to go back and check my logs, unless Benjamin has a better recollection. -- Gaby