Debian Codegraph @

gcc/testsuite/g++.dg/lookup/pr80979.C

raw
1 // pr C++/80979 ICE with late discovery of using directives during ADL
2 // of a friend declaration.
3
4 namespace Tiny {
5 class Handsome {};
6 void Dahl (Handsome &, Handsome &);
7
8 namespace Jack {
9 class Vladof {
10 friend void Dahl (Vladof &, Vladof &);
11 };
12 void Dahl (Vladof &, Vladof &);
13 }
14
15 struct BDonk {};
16
17 namespace Tina {
18 void Dahl (BDonk &, Jack::Vladof &);
19 }
20 using Tina::Dahl;
21 }
22
23 void BoomBoom (Tiny::BDonk &vault, Tiny::Jack::Vladof &hunter)
24 {
25 Dahl (vault, hunter);
26 }