On Tue, Jun 11, 2013 at 4:01 PM, Eli Friedman <[email protected]>wrote:
> @@ -3940,6 +3940,9 @@ > diag::err_call_incomplete_argument, Arg)) > return true; > > + // Decay array and function types to pointers. > + ProtoArgType = Context.getAdjustedParameterType(ProtoArgType); > > You have to decay the type before the RequireCompleteType call, else > you'll reject a call to a function like "void f(A x[2]);", where A is > incomplete. > Thanks, good catch. I don't think I can write the test case in C, but I added one in C++.
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
