https://gcc.gnu.org/bugzilla/show_bug.cgi?id=2972
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org --- Comment #22 from Richard Biener <rguenth at gcc dot gnu.org> --- I have a fix for this, incremental over the PR79345 one. t.C: In constructor āA::A()ā: t.C:7:11: warning: ā*<unknown>.A::gā is used uninitialized in this function [-Wuninitialized] f = g; ^ comes at the cost of initializing pointer-based refs as opposed to only var-based (so this cost can be non-trivial).