This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/13860] Poor error messages on invalid template parameters for basic_filebuf
- From: "peturr02 at ru dot is" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Jan 2004 18:52:49 -0000
- Subject: [Bug libstdc++/13860] Poor error messages on invalid template parameters for basic_filebuf
- References: <20040125185038.13860.peturr02@ru.is>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From peturr02 at ru dot is 2004-01-25 18:52 -------
Created an attachment (id=5576)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5576&action=view)
Test case
This test case uses long for off_type. When compiled it gives:
g++0121 -Wall -Wextra -static 1.cc -o 1
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/include/c++/bits/fstream.tcc: In
member function `typename std::basic_filebuf<_CharT, _Traits>::pos_type
std::basic_filebuf<_CharT, _Traits>::seekpos(typename _Traits::pos_type,
std::_Ios_Openmode) [with _CharT = char, _Traits = MyTraits]':
1.cc:10: instantiated from here
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/include/c++/bits/fstream.tcc:637:
error: `class std::streampos' used where a `long int' was expected
make: *** [1] Error 1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13860