This is the mail archive of the
libstdc++@sources.redhat.com
mailing list for the libstdc++ project.
Re: PATCH: Add missing typename keyword
- To: rittle at rsch dot comm dot mot dot com
- Subject: Re: PATCH: Add missing typename keyword
- From: Gabriel Dos Reis <gdr at codesourcery dot com>
- Date: 17 Nov 2000 06:40:48 +0100
- Cc: libstdc++ at sources dot redhat dot com
- Organization: CodeSourcery, LLC
- References: <200011160825.CAA39837@latour.rsch.comm.mot.com>
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