// PR c++/21930 // Test case by Volker Reichelt // { dg-do compile } template struct A {}; template void foo(const A &a) { -A(a); } // { dg-error "\\(\\(const A<0>\\*\\)a\\)" "" } void bar() { foo(A<0>()); // { dg-error "instantiated from here" "" } }