On Wed, Nov 18, 2020 at 04:58:26PM -0800, Linus Torvalds wrote: > On Wed, Nov 18, 2020 at 1:30 PM Luc Van Oostenryck > <luc.vanoostenryck@xxxxxxxxx> wrote: > > > > If I read the standard correctly (big 'if'), in: > > volatile int x; > > typeof(++x) y; > > 'y' should have the type 'volatile int' and GCC interpret it so. > > That sounds extremely odd to me. I think it should have the same type > as "x += 1" or "x = x+1", no? Yes, but both cases are explicitly excluded from C's 6.3.2.1 where lvalue-conversion is defined. This whole section was very confusing to me but the note 112) in n1570's 6.5.16.1 is somehow clearer. So yes, I'll drop this patch (I should have tagged it as RFC anyway). Thanks for the feedback. -- Luc.