[Bug libstdc++/33613] compilation inconsistency upper_bound vs lower_bound with -D_GLIBCXX_DEBUG

paolo at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Oct 3 00:34:00 GMT 2007



------- Comment #4 from paolo at gcc dot gnu dot org  2007-10-03 00:34 -------
Subject: Bug 33613

Author: paolo
Date: Wed Oct  3 00:34:40 2007
New Revision: 128974

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=128974
Log:
2007-10-03  Paolo Carlini  <pcarlini@suse.de>

        PR libstdc++/33613
        * include/debug/functions.h (__check_partitioned): Rename to...
        (__check_partioned_lower): ... this.
        (__check_partioned_upper): Add.
        * include/debug/macros.h (__glibcxx_check_partitioned): Rename to...
        (__glibcxx_check_partitioned_lower): ... this, adjust.
        (__glibcxx_check_partitioned_upper): Add.
        * include/debug/debug.h (__glibcxx_requires_partitioned): Rename to...
        (__glibcxx_requires_partitioned_lower): ... this, adjust.
        (__glibcxx_requires_partitioned_upper): Add.
        * include/bits/stl_algo.h (lower_bound, upper_bound, equal_range,
        binary search): Use the above.
        * testsuite/25_algorithms/lower_bound/33613.cc: New.
        * testsuite/25_algorithms/upper_bound/33613.cc: Likewise.

Added:
    trunk/libstdc++-v3/testsuite/25_algorithms/lower_bound/33613.cc
    trunk/libstdc++-v3/testsuite/25_algorithms/upper_bound/33613.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/stl_algo.h
    trunk/libstdc++-v3/include/debug/debug.h
    trunk/libstdc++-v3/include/debug/functions.h
    trunk/libstdc++-v3/include/debug/macros.h


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33613



More information about the Gcc-bugs mailing list