This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/11543] basic_filebuf with custom state_type fails to compile
- From: "peturr02 at ru dot is" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Jul 2003 09:18:26 -0000
- Subject: [Bug libstdc++/11543] basic_filebuf with custom state_type fails to compile
- References: <20030716091542.11543.peturr02@ru.is>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11543
------- Additional Comments From peturr02 at ru dot is 2003-07-16 09:18 -------
Created an attachment (id=4410)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=4410&action=view)
Test case
Here is the error I get when I try to compile this:
g++0706 -Wall -static statebug.cc -o statebug
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.4/include/c++/bits/fstream.tcc: In
member function `typename std::basic_filebuf<_CharT, _Traits>::pos_type
std::basic_filebuf<_CharT, _Traits>::seekoff(typename _Traits::off_type,
std::_Ios_Seekdir, std::_Ios_Openmode) [with _CharT = wchar_t, _Traits =
MyCharTraits]':
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.4/include/c++/bits/fstream.tcc:102:
instantiated from `typename std::basic_filebuf<_CharT,
_Traits>::__filebuf_type* std::basic_filebuf<_CharT, _Traits>::open(const
char*, std::_Ios_Openmode) [with _CharT = wchar_t, _Traits = MyCharTraits]'
statebug.cc:75: instantiated from here
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.4/include/c++/bits/fstream.tcc:507:
error: no
match for 'operator=' in '__ret = (this +
56)->std::__basic_file<char>::seekoff(long int, std::_Ios_Seekdir,
std::_Ios_Openmode)((__computed_off * __width), __way, __mode)'
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.4/include/c++/i686-pc-linux-gnu/bits/fpos.h:58:
note: candidates
are: std::fpos<MyState>& std::fpos<MyState>::operator=(const
std::fpos<MyState>&)
make: *** [statebug] Error 1
This program is not expected to link, since the definitions of codecvt
members are missing.