Re: [PATCH] c-family: Fix up -Wsizeof-pointer-memaccess ICEs [PR117230]

2024-10-22 Thread Marek Polacek
On Tue, Oct 22, 2024 at 08:11:25PM +0200, Jakub Jelinek wrote: > Hi! > > In the following testcases, we ICE on all 4 function calls. > The problem is using TYPE_PRECISION on vector types (but guess it > would be similarly problematic on structures/unions/arrays). > The test only differentiates bet

[PATCH] c-family: Fix up -Wsizeof-pointer-memaccess ICEs [PR117230]

2024-10-22 Thread Jakub Jelinek
Hi! In the following testcases, we ICE on all 4 function calls. The problem is using TYPE_PRECISION on vector types (but guess it would be similarly problematic on structures/unions/arrays). The test only differentiates between suggestion what to do, whether to supply explicit size because sizeof