On Tue, Jan 27, 2026 at 09:54:59AM +0100, Richard Biener wrote:
> > OK with the goacc testcases adjusted?  OK to simply remove the
> > dg-note line or should I XFAIL it?
> 
> Ping.  Any opinion?
> 
> > Thanks,
> > Richard.
> > 
> >     PR tree-optimization/123651
> >     * tree-ssa-uninit.cc (warn_uninit): Treat DECL_ARTIFICIAL
> >     var as if it were not present.
> > 
> >     * g++.dg/warn/Wuninitialized-pr123651.C: New testcase.

I think the current state (warning only for -g) is better than not warning
at all.  Yes, we can't provide details on what exactly is wrong, it is more
something here is uninitialized, but still.
Not warning about DECL_ARTIFICIAL vars will mean we won't discover other
problems (we've had various PRs where DECL_ARTIFICIAL TARGET_EXPR slots
ended up due to FE bugs uninitialized or being used before initialization
and most of those issues were reported through -W*uninitialized first.

        Jakub

Reply via email to