This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Bad assertion in locale.cc
- To: libstdc++-v3@cygnus.com
- Subject: Bad assertion in locale.cc
- From: Christophe PIERRET <cpierret@businessobjects.com>
- Date: Tue, 16 Feb 1999 15:11:27 +0100
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