[Bug libstdc++/40497] invalid std::next / std::prev declaration

2009-06-20 Thread e28773 at bsnow dot net
--- Comment #2 from e28773 at bsnow dot net 2009-06-20 12:30 --- Created an attachment (id=18029) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18029action=view) test-case -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40497

[Bug libstdc++/40497] invalid std::next / std::prev declaration

2009-06-20 Thread e28773 at bsnow dot net
--- Comment #3 from e28773 at bsnow dot net 2009-06-20 12:31 --- Created an attachment (id=18030) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18030action=view) testcase - ii -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40497

[Bug libstdc++/40497] invalid std::next / std::prev declaration

2009-06-20 Thread e28773 at bsnow dot net
--- Comment #4 from e28773 at bsnow dot net 2009-06-20 12:32 --- (From update of attachment 18029) namespace X { class C { }; templateclass Tvoid next(T) { } } using namespace X; #include string using namespace std; int main

[Bug libstdc++/40497] invalid std::next / std::prev declaration

2009-06-20 Thread e28773 at bsnow dot net
--- Comment #5 from e28773 at bsnow dot net 2009-06-20 12:33 --- here we go ;) I forgot a ';' in line 5 of the main.cpp-file -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40497

[Bug libstdc++/40497] invalid std::next / std::prev declaration

2009-06-20 Thread e28773 at bsnow dot net
--- Comment #11 from e28773 at bsnow dot net 2009-06-20 23:21 --- (In reply to comment #10) Fixed for 4.4.1. After all, this is still a bug of ADL/SFINAE? Even if the declaration of next/prev does not match with the one proposed in the current draft, the right function

[Bug c++/40497] New: invalid std::next / std::prev declaration

2009-06-19 Thread e28773 at bsnow dot net
org ReportedBy: e28773 at bsnow dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40497