URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [other/] [error10.C] - Rev 816
Compare with Previous | Blame | View Log
// PR c++/21930// Test case by Volker Reichelt// { dg-do compile }template<int> struct A {};template<int N>void foo(const A<N> &a){ -A<N>(a); } // { dg-error "\\(\\(const A<0>\\*\\)a\\)" "" }void bar(){foo(A<0>()); // { dg-error "instantiated from here" "" }}
