view gcc/testsuite/g++.dg/lookup/pr80979.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line source

// 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);
}