https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81873
Eric Gallager <egallager at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marxin at gcc dot gnu.org, | |pinskia at gcc dot gnu.org --- Comment #6 from Eric Gallager <egallager at gcc dot gnu.org> --- (In reply to Eric Gallager from comment #5) > -Wreturn-type is on by default now. ...which, if I remember correctly, was done by Martin Liska; cc-ing him (In reply to Eric Gallager from comment #4) > (In reply to Andrew Pinski from comment #2) > > This is not so much an -Wreturn-type issue but a symptom of the C++ > > front-end not merging decls for globals. You filed a few other cases which > > are accepts invalid which are the same here. > > e.g. bug 80140, bug 79996. Should probably be marked a duplicate of one of > them, but I can't decide which, so I'll just confirm this as a separate bug > (also since the testcase is different in this one, too) Also cc-ing Andrew for his opinion on which of those is a dup of which, if any