PATCH (3.3): implicit typename warnings
Loren James Rittle
rittle@latour.rsch.comm.mot.com
Mon Apr 14 21:16:00 GMT 2003
Received off-list. As applied to 3.3 branch. Warner, for my own
information, how did you find this? I had to explicitly add
-Wsystem-headers to e.g. 17_intro/headers.cc in order to see it.
(To fellow library maintainers, on mainline, shall we force
17_intro/headers.cc to run with this additional warning checks on
*-*-freebsd* since they claim to have zero warning system headers?)
2003-04-14 M. Warner Losh <imp@bsdimp.com>
* include/std/std_fstream.h: Add required typename.
Index: include/std/std_fstream.h
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/std/std_fstream.h,v
retrieving revision 1.14.2.4
diff -c -r1.14.2.4 std_fstream.h
*** include/std/std_fstream.h 8 Mar 2003 14:01:23 -0000 1.14.2.4
--- include/std/std_fstream.h 14 Apr 2003 20:59:45 -0000
***************
*** 450,461 ****
// Generic definitions.
template <typename _CharT, typename _Traits>
! basic_filebuf<_CharT, _Traits>::int_type
basic_filebuf<_CharT, _Traits>::underflow()
{ return _M_underflow_common(false); }
template <typename _CharT, typename _Traits>
! basic_filebuf<_CharT, _Traits>::int_type
basic_filebuf<_CharT, _Traits>::uflow()
{ return _M_underflow_common(true); }
--- 450,461 ----
// Generic definitions.
template <typename _CharT, typename _Traits>
! typename basic_filebuf<_CharT, _Traits>::int_type
basic_filebuf<_CharT, _Traits>::underflow()
{ return _M_underflow_common(false); }
template <typename _CharT, typename _Traits>
! typename basic_filebuf<_CharT, _Traits>::int_type
basic_filebuf<_CharT, _Traits>::uflow()
{ return _M_underflow_common(true); }
More information about the Libstdc++
mailing list