Expr **ArgExprs = reinterpret_cast<Expr **>(Args);
Expr *RExpr = static_cast<Expr *>(receiver);
+
+ // If necessary, apply function/array conversion to the receiver.
+ // C99 6.7.5.3p[7,8].
+ DefaultFunctionArrayConversion(RExpr);
+
QualType returnType;
-
QualType ReceiverCType =
Context.getCanonicalType(RExpr->getType()).getUnqualifiedType();
// RUN: clang-cc -fsyntax-only -verify %s
+typedef struct objc_object {
+ Class isa;
+} *id;
+
+
@interface foo
- (void)meth;
@end
int b = [S somemsg]; // expected-error {{bad receiver type 'struct S'}}
}
-
+// PR4021
+void foo4() {
+ struct objc_object X[10];
+
+ [X rect];
+}