blob: fd4bf26f1adb0194808289ea9533e890024f4bde [file] [log] [blame]
// PR c++/98231
// { dg-do compile }
template <typename, typename = int> struct basic_ostream {};
namespace N {
template <typename Char, typename CharTraits, typename T>
void operator<<(basic_ostream<Char, CharTraits>, T);
}
basic_ostream<char> os;
template<typename T> void
foo (T value)
{
using N::operator<<;
os << value;
}
void bar() { foo (1); }