This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/81873] spurious -Wreturn-type calling a locally declared noreturn function
- From: "egallager at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 23 Aug 2017 13:27:38 +0000
- Subject: [Bug c++/81873] spurious -Wreturn-type calling a locally declared noreturn function
- Auto-submitted: auto-generated
- References: <bug-81873-4@http.gcc.gnu.org/bugzilla/>
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)