incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <>
Subject [jira] Created: (STDCXX-291) [HP aCC 6.05/HP-UX 11.23] struct siagaction declared extern "C++"
Date Mon, 18 Sep 2006 16:16:22 GMT
[HP aCC 6.05/HP-UX 11.23] struct siagaction declared extern "C++"

                 Key: STDCXX-291
             Project: C++ Standard Library
          Issue Type: Bug
          Components: External
         Environment: HP aCC 6.05/HP-UX 11.23
            Reporter: Martin Sebor

The program below fails to compile with HP aCC 6.05 on HP-UX 11.23 (IPF):

$ cat t.cpp && aCC -AA -V +strict -c t.cpp
#include <signal.h>

extern "C" int foo (int signo, void (*func)(int))
    struct sigaction act;
    act.sa_handler = func;
    return 0 > sigaction (signo, &act, 0);

aCC: HP aC++/ANSI C B3910B A.06.05 [Jul 25 2005]
"t.cpp", line 6: error #2513: a value of type "void (*)(int) C" cannot be
          assigned to an entity of type "void (*)(int)"
      act.sa_handler = func;

1 error detected in the compilation of "t.cpp".

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message