Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
diagnostic
/
not-a-function-template-1.C
blob: caf8afa26970290f75b7be91f34eb5321d274619 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++14 } }
template
<typename>
int
A
;
// { dg-message "24:variable template" }
template
int
A
<>();
// { dg-error "14:template<class>" }
struct
B
{
friend
int
A
<>();
// { dg-error "14:specialization" }
};