This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [Patch 3.0.1] Missing codecvt:: qualifier




--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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]