looking at the LLVM/Clang documentation 
(http://clang.llvm.org/doxygen/InitPreprocessor_8cpp-source.html) shows that 
__block is not actually a keyword, but a macro that is defined to be 
__attribute__((__blocks__(byref))).
so adding:

#ifndef __block
    #define __block __attribute__((__blocks__(byref)))
#endif

to the above example works.

btw: this also happens if using a self-compiled upstream LLVM/GCC, so
it's not actually an Ubuntu bug.

-- 
llvm-gcc fails to recognize __block keywords
https://bugs.launchpad.net/bugs/483679
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to