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

e28773 at bsnow dot net gcc-bugzilla@gcc.gnu.org
Sat Jun 20 12:32:00 GMT 2009



------- Comment #4 from e28773 at bsnow dot net  2009-06-20 12:32 -------
(From update of attachment 18029)
namespace X
{
        class C
        {
        };

        template<class T>void next(T)
        {
        }
}
using namespace X;

#include <string>
using namespace std;

int main()
{
        C c;
        next(c);
}


-- 


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



More information about the Gcc-bugs mailing list