Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/other/error10.C @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
line wrap: on
line source
// 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 "operand type is 'A<0>'" } void bar() { foo(A<0>()); // { dg-message "required from here" } }