[cfe-commits] r159626 - in /cfe/trunk: include/clang/Parse/Parser.h include/clang/Sema/Sema.h lib/Parse/ParseDecl.cpp lib/Parse/ParseObjc.cpp lib/Parse/Parser.cpp lib/Sema/SemaDeclObjC.cpp test/SemaObjC/delay-parsing-cfunctions.m

jahanian fjahanian at apple.com
Tue Jul 3 15:31:23 PDT 2012


On Jul 3, 2012, at 3:02 PM, Jean-Daniel Dupas wrote:

> This commit broke the Obj-C++11 parser:

I turned it off for Obj-C++11 parser until I get the chance to look at it.
This is in r159690

- Fariborz

> 
> ---- foo.mm
> @interface Foo
> @end
> 
> @implementation Foo
> 
> static int test() {
>   return 0;
> }
> 
> @end
> 
> ----------
> clang++ -fsyntax-only -std=c++11 foo.mm 
> foo.mm:8:2: error: expected expression
>         return 0;
>         ^
> foo.mm:9:2: error: expected ';' after top level declarator
> }
>  ^
>  ;
> foo.mm:12:1: error: missing '@end'
> ^
> 
> @end
> 
> foo.mm:5:1: note: implementation started here
> @implementation Foo
> ^
> 3 errors generated.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120703/2e686429/attachment.html>


More information about the cfe-commits mailing list