forked from OSchip/llvm-project
parent
1060067dd1
commit
866ad5d8ea
|
@ -41,15 +41,11 @@ struct test {}; // expected-note{{previous definition}}
|
||||||
template<typename T>
|
template<typename T>
|
||||||
struct test : T {}; // expected-error{{redefinition}}
|
struct test : T {}; // expected-error{{redefinition}}
|
||||||
|
|
||||||
#if 0
|
|
||||||
// FIXME: parse template declarations in these scopes, so that we can
|
|
||||||
// complain about the one at function scope.
|
|
||||||
class X {
|
class X {
|
||||||
public:
|
public:
|
||||||
template<typename T> class C;
|
template<typename T> class C;
|
||||||
};
|
};
|
||||||
|
|
||||||
void f() {
|
void f() {
|
||||||
template<typename T> class X;
|
template<typename T> class X; // expected-error{{expression}}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
Loading…
Reference in New Issue