This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14340] [3.3/3.4/3.5 Regression] libstdc++: failure to convert iterator to const_iterator
- From: "phil dot el at wanadoo dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Feb 2004 03:51:24 -0000
- Subject: [Bug c++/14340] [3.3/3.4/3.5 Regression] libstdc++: failure to convert iterator to const_iterator
- References: <20040229030820.14340.phil.el@wanadoo.fr>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From phil dot el at wanadoo dot fr 2004-02-29 03:51 -------
ok sorry too many simplification to the test case: this one
work for 2.95.3/3.2.3/3.3.3 and tree-ssa, it fails only with
tree ssa and -D_GLIBCXX_DEBUG
#include <map>
typedef std::map<int, int> container;
container::const_iterator find_arc()
{
container v;
container::const_iterator it = v.begin();
container::const_iterator end = v.end();
return it == end ? v.end() : it;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14340