https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81873
Eric Gallager <egallager at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2017-08-23 CC| |egallager at gcc dot gnu.org See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=80140 Ever confirmed|0 |1 --- Comment #4 from Eric Gallager <egallager at gcc dot gnu.org> --- (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)