[Patch 3.0.1] Missing codecvt:: qualifier
Mark Mitchell
mark@codesourcery.com
Thu Aug 2 00:30:00 GMT 2001
--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
More information about the Libstdc++
mailing list