// PR c++/80891 part 4 // ICE copying an augmented lookup during ADL struct __normal_iterator get(); // { dg-message "candidate .: .__normal_iterator get\\(\\)." } namespace boost { template void get(); // { dg-message "candidate .: .template void boost::get\\(\\)." } struct A { A(int); }; enum problem_selector { subgraph_iso }; template struct B { B(A, A, int, int, int, int); void m_fn1(SubGraphIsoMapCallback p1) { __normal_iterator __trans_tmp_1(); // { dg-warning "empty parentheses" } p1(__trans_tmp_1, 0); } }; template void match( Graph1, Graph2, SubGraphIsoMapCallback p3, VertexOrder1, B p5) { p5.m_fn1(p3); } template void vf2_subgraph_morphism(GraphSmall, GraphLarge, SubGraphIsoMapCallback p3, IndexMapSmall, IndexMapLarge, VertexOrderSmall, EdgeEquivalencePredicate, VertexEquivalencePredicate) { B s(0, 0, 0, 0, 0, 0); match(0, 0, p3, 0, s); } template int vf2_subgraph_iso(GraphSmall, GraphLarge, SubGraphIsoMapCallback p3, IndexMapSmall, IndexMapLarge, VertexOrderSmall, EdgeEquivalencePredicate, VertexEquivalencePredicate) { vf2_subgraph_morphism(0, 0, p3, 0, 0, 0, 0, 0); return 0; } } using namespace boost; struct C { C(int) : graph1_(0), graph2_(0) {} template void operator()(CorrespondenceMap1To2 p1, CorrespondenceMap2To1) { get(p1); // { dg-error "no matching function" } } A graph1_; A graph2_; }; template void get(); // { dg-message "candidate .: .template void get\\(\\)." } void test_vf2_sub_graph_iso() { C a(vf2_subgraph_iso(0, 0, a, 0, 0, 0, 0, 0)); }