// PR c++/107461 // { dg-do compile { target c++11 } } template T f(); template decltype(T() + f()) g(); // #1 template decltype(T() + f()) g(); // #2, distinct from #1 int main() { g(); // { dg-error "ambiguous" } }