This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project. See the libstdc++ home page for more information.


[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]

Bad assertion in locale.cc



For libstdc++ 2.90.2, in file src/locale.cc at line 66:

    assert((cats & locale::all) && !(cats && ~locale::all));

should be:

    assert((cats & locale::all) && !(cats & ~locale::all)); 


This code verifies that 'cats' is a valid category mask:
no bit set outside of valid bits, at least one bit set inside valid bits


Regards,
Christophe Pierret
    Software Development Engineer

Business Objects S.A.
    1, square Chaptal, 92309 Levallois-Perret, FRANCE
    http://www.businessobjects.com