// RUN: %clang_cc1 -fsyntax-only -verify %s
template<typename T>voidf(T);template<typename T>structA{// expected-error@+1{{cannot declare an explicit specialization in a friend}}
template<>friendvoidf<>(int){}};// Makes sure implicit instantiation here does not trigger
// the assertion "Member specialization must be an explicit specialization"
voidfoo(void){
A<int> a;}