blob: 0384aa70fa002604a4411f91746fc725ea644c1d [file] [log] [blame]
// RUN: %clang_cc1 -fsyntax-only -verify %s
template<class T> struct A {
static T t; // expected-error{{static data member instantiated with function type 'int ()'}}
};
typedef int function();
A<function> a; // expected-note{{instantiation of}}
template<typename T> struct B {
B() { T t; } // expected-error{{variable instantiated with function type 'int ()'}}
};
B<function> b; // expected-note{{instantiation of}}