[prev in list] [next in list] [prev in thread] [next in thread]
List: gcc-bugs
Subject: [Bug c++/89897] New: suggest header for SIGABRT
From: "jg at jguk dot org" <gcc-bugzilla () gcc ! gnu ! org>
Date: 2019-03-31 18:37:21
Message-ID: bug-89897-4 () http ! gcc ! gnu ! org/bugzilla/
[Download RAW message or body]
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89897
Bug ID: 89897
Summary: suggest header for SIGABRT
Product: gcc
Version: 9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: jg at jguk dot org
Target Milestone: ---
Could g++ suggest header for SIGABRT?
<csignal> just includes <signal.h> I saw in the file. But anyway, I was
compiling as
#1 with x86-64 gcc (trunk)
<source>: In function 'int main()':
<source>:6:18: error: 'SIGABRT' was not declared in this scope
6 | std::cout << SIGABRT;
| ^~~~~~~
Compiler returned: 1
//#include <csignal>
#include <iostream>
int main()
{
std::cout << SIGABRT;
}
and C version
//#include <signal.h>
int main()
{
return SIGABRT;
}
#1 with x86-64 gcc 8.3
<source>: In function 'main':
<source>:5:12: error: 'SIGABRT' undeclared (first use in this function)
return SIGABRT;
^~~~~~~
<source>:5:12: note: each undeclared identifier is reported only once for each
function it appears in
Compiler returned: 1=
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic