This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/81873] spurious -Wreturn-type calling a locally declared noreturn function


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)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]