[C++ PATCH] Fix cp_parser_direct_declarator (PR c++/29886)

Paolo Bonzini paolo.bonzini@lu.unisi.ch
Thu Nov 23 16:33:00 GMT 2006


Hi Jakub,

> +int A::z[(3, 2)];	// { dg-error "array bound is not an integer constant" }
> +
> +void
> +foo (int i)
> +{
> +  int j = int (A::x[i]);
> +  switch (int (A::x[i])) {}
> +  if (int (A::x[i])) {}
> +  j = int (y[i]);
> +  switch (int (y[i])) {}
> +  if (int (y[i])) {}
> +}

What do you think about testing explicitly with dg-bogus on these lines?

Paolo



More information about the Gcc-patches mailing list