libstdc++/9580: basic_filebuf<> with custom traits_type fails to link

Paolo Carlini
Thu Feb 13 21:17:00 GMT 2003

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
Benjamin, apparently
(the problem is with std::basic_filebuf<char, 

2002-07-30  Benjamin Kosnik  <>
            Gabriel Dos Reis  <>


    * include/std/std_fstream.h: Declare _M_underflow_common
    * src/ 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?


More information about the Gcc-bugs mailing list