Debian Codegraph @

gcc/testsuite/g++.dg/diagnostic/not-a-function-template-1.C

raw
1 // { dg-do compile { target c++14 } }
2
3 template<typename=int> int A; // { dg-message "28:variable template" }
4
5 template int A<>(); // { dg-error "14:template<class>" }
6
7 struct B {
8 friend int A<>(); // { dg-error "14:specialization" }
9 };