[cfe-dev] example does not compile, look like a bug

Anton Korobeynikov anton at korobeynikov.info
Wed Apr 29 15:58:55 PDT 2015


According to https://github.com/loarabia/Clang-tutorial it was not
updated for more than a year. It does make perfect sense that it
cannot be compiled with 3.6 release.

You may want to ask the author of that code to fix it, or fix yourself.

On Wed, Apr 29, 2015 at 1:09 PM, aftershock <equinox at atw.hu> wrote:
> Hi ALl,
>
> I was not sure where to post this.
> there is an example...tutorial on using clang library
> https://github.com/loarabia/Clang-tutorial/blob/master/CItutorial4.cpp
>
> When I use VIsual Stuidio 2013 compiler, some of the headers files do not
> compile.
> d:\src\llvm-3.6.0.src\tools\clang\include\clang/AST/DeclBase.h(1142) : error
> C2039: 'Captured' : is not a member of 'clang::Decl'
>         d:\src\llvm-3.6.0.src\tools\clang\include\clang/AST/DeclBase.h(72) :
> see declaration of 'clang::Decl'
> d:\src\llvm-3.6.0.src\tools\clang\include\clang/AST/DeclBase.h(1142) : error
> C2065: 'Captured' : undeclared identifier
> d:\src\llvm-3.6.0.src\tools\clang\include\clang/AST/DeclBase.h(1142) : error
> C2051: case expression not constant
>
> When is it fixed?  Or what is this?
>
> Thanks in advance.
>
> Marton
>
>
>
>
> --
> View this message in context: http://clang-developers.42468.n3.nabble.com/example-does-not-compile-look-like-a-bug-tp4045150.html
> Sent from the Clang Developers mailing list archive at Nabble.com.
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev



-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University



More information about the cfe-dev mailing list