This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/14340] [3.3/3.4/3.5 Regression] libstdc++: failure to convert iterator to const_iterator


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


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