PATCH: Add missing typename keyword
Gabriel Dos Reis
gdr@codesourcery.com
Thu Nov 16 21:40:00 GMT 2000
Loren James Rittle <rittle@latour.rsch.comm.mot.com> writes:
[...]
| 2000-11-16 Loren J. Rittle <ljrittle@acm.org>
|
| * include/bits/locale_facets.tcc (num_get<_CharT,
| _InIter>::do_get(...)): Add missing typename keyword.
This is in. Thanks.
[...]
| // Test for handling of missing typename keyword - ljr
| // Build don't link:
| // Special Options: -pedantic-errors
| template<class _CharT>
| struct char_traits
| {
| typedef unsigned long int_type;
| };
|
| template<typename _CharT>
| class bar
| {
| typedef char_traits<_CharT> __traits_type;
|
| public:
| int foo ()
| {
| int __p = 1;
| if (static_cast<__traits_type::int_type>(__p))
| return 1;
| return 0;
| }
| };
Strictly speaking, this is a compiler related problem; you migth
probably want to submit it as a separate g++ test case for approval from
a C++ maintainer.
-- Gaby
CodeSourcery, LLC http://www.codesourcery.com
More information about the Libstdc++
mailing list