This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH for C++17 selection statements with initializer
- From: David Edelsohn <dje dot gcc at gmail dot com>
- To: Marek Polacek <polacek at redhat dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Jason Merrill <jason at redhat dot com>
- Date: Sat, 5 Nov 2016 22:03:37 -0400
- Subject: Re: C++ PATCH for C++17 selection statements with initializer
- Authentication-results: sourceware.org; auth=none
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