Re: [PATCH] c++: -Wuninitialized for mem-inits and empty classes [PR19808]

2021-11-23 Thread Jason Merrill via Gcc-patches
On 11/19/21 16:57, Marek Polacek wrote: This fixes a bogus -Wuninitialized warning: there's nothing to initialize in empty classes, so don't add them into our uninitialized set. Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for trunk? OK. PR c++/19808 gcc/cp/ChangeLog:

[PATCH] c++: -Wuninitialized for mem-inits and empty classes [PR19808]

2021-11-19 Thread Marek Polacek via Gcc-patches
This fixes a bogus -Wuninitialized warning: there's nothing to initialize in empty classes, so don't add them into our uninitialized set. Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for trunk? PR c++/19808 gcc/cp/ChangeLog: * init.c (emit_mem_initializers): Don't add is_re