[cfe-dev] [PATCH] fix for bug 7857 - incomplete type as array parameter in C mode
Eli Friedman
eli.friedman at gmail.com
Wed Aug 18 12:51:54 PDT 2010
On Wed, Aug 18, 2010 at 7:43 AM, Douglas Gregor <dgregor at apple.com> wrote:
> The getCurScope()->isFunctionPrototypeScope() check doesn't ensure that this is the type of a parameter; it only means that we're within a parameter list. For example, this would allow something like:
>
> typedef struct X X;
> template<typename T> struct A { };
> void f(A<X[]>);
>
> which we don't want.
Erm, this fix doesn't affect C++ at all... and the testcase in
question is perfectly legal C++, as far as I can tell.
-Eli
More information about the cfe-dev
mailing list