blob: 75b52cb1ec7a669db1459a5a3062cc7d64988f93 [file] [log] [blame]
// Build don't link:
// Origin: Neil Booth, from PR #78
namespace MySpace
{
class Tag1 { };
class Tag2 { };
template<class Tag>
class Object
{
public:
friend void Forgotten(Object const & m) {}
};
typedef Object<Tag1> U1;
typedef Object<Tag2> U2;
void foo()
{
Forgotten(U1());
Forgotten(U2());
}
void bar()
{
Forgotten(U1());
}
}