// PR c++/97582 // { dg-do compile { target c++11 } } struct C1 { void operator+(); }; struct C2 { void operator+(); }; struct C3 : C1, C2 { template void get() { [] (T x) { +x; }; } // { dg-error "ambiguous" } }; template void C3::get(); // { dg-bogus "" } template void C3::get(); // { dg-bogus "" } template void C3::get(); // { dg-message "required from here" }