blob: eb22f71773cb74afe0b8e3c5b416ab46fec4f3a8 [file] [log] [blame]
// pr C++/80979 ICE with late discovery of using directives during ADL
// of a friend declaration.
namespace Tiny {
class Handsome {};
void Dahl (Handsome &, Handsome &);
namespace Jack {
class Vladof {
friend void Dahl (Vladof &, Vladof &);
};
void Dahl (Vladof &, Vladof &);
}
struct BDonk {};
namespace Tina {
void Dahl (BDonk &, Jack::Vladof &);
}
using Tina::Dahl;
}
void BoomBoom (Tiny::BDonk &vault, Tiny::Jack::Vladof &hunter)
{
Dahl (vault, hunter);
}