The patch adds testcase init-statement6.C, which includes the declaration

extern void publish (int), raise (int);

POSIX defines

int raise (int);

in <signal.h> which gets included by the C++ headers for the testcase on AIX.

This is causes the error message:

/nasfarm/edelsohn/src/src/gcc/testsuite/g++.dg/cpp1z/init-statement6.C:10:28:
error: ambiguating new declaration of 'void raise(int)'
...
/tmp/GCC/gcc/include-fixed/sys/signal.h:103:12: note: old declaration
'int raise(int)'

Is there a reason for the conflicting / ambiguating declaration?

Thanks, David

Reply via email to