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

Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-12-21
     Ever confirmed|0                           |1

--- Comment #1 from Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> ---
Let's note that this issue breaks bootstrap on GCC 5, but it can also be
triggered on any other compiler, including GCC 6 and 7, although for some
reason there it doesn't occur during bootstrap (the libsanitizer code is
different there).

$ cat a.c
#include <CoreFoundation/CFBase.h>
$ gcc-7 a.c 
In file included from a.c:1:0:
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h: In
function 'CFAutorelease':
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:663:61:
error: expected declaration specifiers before 'API_AVAILABLE'
 CFTypeRef CFAutorelease(CFTypeRef CF_RELEASES_ARGUMENT arg)
API_AVAILABLE(macos(10.9), ios(7.0), watchos(2.0), tvos(9.0));
                                                             ^~~~~~~~~~~~~

Reply via email to