On Sun, Oct 13, 2024 at 12:50:31PM +0200, Richard Biener wrote:
> The following avoids building an array type with function or method
> element type during diagnosing an array bound violation as this
> will result in an error, rejecting a program with a not too useful
> error message.  Instead build such array type manually.
> 
> Bootstrapped and tested on x86_64-unknown-linux-gnu, OK?
> 
> Thanks,
> Richard.
> 
>       PR tree-optimization/116481
>       * pointer-query.cc (build_printable_array_type):
>       Build an array types with function or method element type
>       manually to avoid bogus diagnostic.
> 
>       * gcc.dg/pr116481.c: New testcase.

Ok.

        Jakub

Reply via email to