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: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 17 Aug 2017 03:56:15 +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
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
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.