// { dg-do assemble } // Based on bug report by Eric NICOLAS namespace foo { template struct bar {}; } void baz() { foo::bar(); // { dg-error "12:class template argument deduction failed|no match" "" { target c++17 } } template used as expression // { dg-error "11:missing template arguments" "" { target c++14_down } .-1 } }