public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/89870] C++ suggest header for abort()
       [not found] <bug-89870-4@http.gcc.gnu.org/bugzilla/>
@ 2021-12-11  5:50 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; only message in thread
From: pinskia at gcc dot gnu.org @ 2021-12-11  5:50 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89870

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
         Depends on|                            |101052
             Status|NEW                         |RESOLVED
   Target Milestone|---                         |12.0

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Since r12-1435-g93bfadf3a1db (PR101052):


<source>: In function 'int main()':
<source>:4:5: error: 'abort' was not declared in this scope
    4 |     abort();
      |     ^~~~~
<source>:1:1: note: 'abort' is defined in header '<cstdlib>'; did you forget to
'#include <cstdlib>'?
  +++ |+#include <cstdlib>
    1 | 


So fixed.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101052
[Bug 101052] Suggest stdlib.h when exit(1) is called

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-12-11  5:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-89870-4@http.gcc.gnu.org/bugzilla/>
2021-12-11  5:50 ` [Bug c++/89870] C++ suggest header for abort() pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).