[Bug libstdc++/40804] New: STL: operator= for pair hides general operator= from std::rel_ops

2009-07-19 Thread mariofutire at googlemail dot com
Priority: P3 Component: libstdc++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mariofutire at googlemail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40804

[Bug libstdc++/40804] STL: operator= for pair hides general operator= from std::rel_ops

2009-07-19 Thread mariofutire at googlemail dot com
--- Comment #1 from mariofutire at googlemail dot com 2009-07-19 09:11 --- Created an attachment (id=18227) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18227action=view) Preprocessed file to reproduce the error. Filed obtained with g++ -E foo.cpp -o foo.i to reproduce

[Bug libstdc++/40804] STL: operator= for pair hides general operator= from std::rel_ops

2009-07-19 Thread mariofutire at googlemail dot com
--- Comment #3 from mariofutire at googlemail dot com 2009-07-19 17:29 --- I have removed one of the using and still get the same problem: #include utility #include functional using namespace std::rel_ops; struct A { bool operator(const A ) const; }; void foo1() { bool ok

[Bug libstdc++/40804] STL: operator= for pair hides general operator= from std::rel_ops

2009-07-19 Thread mariofutire at googlemail dot com
--- Comment #5 from mariofutire at googlemail dot com 2009-07-19 18:06 --- Thanks for your detailed answer. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40804