On Tue, Mar 11, 2025 at 10:57:39AM +0100, Richard Biener wrote:
> The following makes sure to convert the folded expression to the
> original expression type.
> 
> Bootstrapped and tested on x86_64-unknown-linux-gnu, OK?
> 
> Thanks,
> Richard.
> 
>       PR middle-end/119204
>       * builtins.cc (fold_builtin_strcspn): Preserve the original
>       expression type.
> 
>       * gcc.dg/pr119204.c: New testcase.

Ok.
Arguably the testcase is invalid, but we shouldn't ICE on it.

        Jakub

Reply via email to