This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [Patch 3.0.1] Missing codecvt:: qualifier
- To: Matthias Klose <doko at cs dot tu-berlin dot de>, "libstdc++ at gcc dot gnu dot org" <libstdc++ at gcc dot gnu dot org>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Subject: Re: [Patch 3.0.1] Missing codecvt:: qualifier
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Thu, 02 Aug 2001 00:29:22 -0700
- cc: "104614-quiet at bugs dot debian dot org" <104614-quiet at bugs dot debian dot org>
--On Wednesday, August 01, 2001 10:44:31 PM +0200 Matthias Klose
<doko@cs.tu-berlin.de> wrote:
> Try the following little program:
>
> typedef int error;
> #include <iostream>
>
> It fails because in codecvt.h there is a statement __ret = error;
> This "error", however, is supposed to be the member of an enum in a
> class in codecvt.h; the qualifier is missing. The bug can be handled by
> the attached patch.
> Note that similar bugs are likely to show up in different places. It is
> a gcc bug that the compiler doesn't warn about the missing qualifier, I
> believe. Not even with "-Wall -pedantic".
The new parser gets this right -- but sadly has other bugs still.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com