// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s // PR7386 @class NSObject; class A; // expected-note {{forward declaration of 'A'}} template class V { T x; }; // expected-error {{field has incomplete type 'A'}} @protocol Protocol - (V)protocolMethod; - (V)method2; @end @interface I @end @implementation I - (void)randomMethod:(id)info { V vec([self protocolMethod]); } - (V)protocolMethod { V va; return va; } - (V)method2 { // expected-note {{in instantiation of}} } @end