https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102276
--- Comment #13 from rguenther at suse dot de <rguenther at suse dot de> --- On Tue, 15 Feb 2022, qinzhao at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102276 > > --- Comment #11 from qinzhao at gcc dot gnu.org --- > (In reply to rguent...@suse.de from comment #10) > > > I think it definitely makes sense to diagnose that we are not > > following -ftrivial-auto-init-var=X for a decl. Maybe we should > > do that with -Wtrivial-auto-init-var only though? > > currently we don't have -Wtrivial-auto-init-var, do you want to add a new > option -Wtrivial-auto-init-var? what's the purpose of it? It's purpose is to diagnose cases where the program might see a not auto-initialized variable despite using -ftrivial-auto-init-var=...