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

equinox at atw.hu equinox at atw.hu
Thu Apr 30 01:20:46 PDT 2015


On 4/30/2015 12:58 AM, Anton Korobeynikov wrote:
> 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

Thanks you for trying to help.
This problem is located in clang headers , not in the  code as I see it.
It implies clang 3.6.0 was released with faulty headers?????

Marton








More information about the cfe-dev mailing list