[Bug c++/96521] New: Suggest signal.h missing include

jg at jguk dot org gcc-bugzilla@gcc.gnu.org
Fri Aug 7 14:16:16 GMT 2020


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

            Bug ID: 96521
           Summary: Suggest signal.h missing include
           Product: gcc
           Version: 10.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jg at jguk dot org
  Target Milestone: ---

Hello

Could g++ suggest signal.h?

int main()
{
    raise(SIGSEGV);
}



#1 with x86-64 gcc (trunk)
<source>: In function 'int main()':

<source>:3:11: error: 'SIGSEGV' was not declared in this scope

    3 |     raise(SIGSEGV);

      |           ^~~~~~~

<source>:3:5: error: 'raise' was not declared in this scope

    3 |     raise(SIGSEGV);

      |     ^~~~~

Compiler returned: 1


More information about the Gcc-bugs mailing list