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