Re: [PATCH v2] c: don't drop typedef information in casts

2021-03-15 Thread David Lamparter
On Fri, Mar 12, 2021 at 09:35:44AM +0100, Jakub Jelinek wrote: > On Fri, Mar 12, 2021 at 04:08:17AM +0100, David Lamparter wrote: > > > > The TYPE_MAIN_VARIANT() here was, for casts to a typedef'd type name, > > resulting in all information about the typedef's involvement getting > > lost. This d

Re: [PATCH v2] c: don't drop typedef information in casts

2021-03-12 Thread Jakub Jelinek via Gcc-patches
On Fri, Mar 12, 2021 at 04:08:17AM +0100, David Lamparter wrote: > > The TYPE_MAIN_VARIANT() here was, for casts to a typedef'd type name, > resulting in all information about the typedef's involvement getting > lost. This drops necessary information for warnings and can make them > confusing or