Hi Eitan,

Can you try again using the latest development version of LLVM/Clang?

I believe that the 3.1 release in known to not work for us.

John


On 07/10/2012 11:21 PM, Eitan Adler wrote:
Hi all,

I'm getting the following error when building c-reduce. Any advice is
appreciated. Is my version of clang out of date perhaps?

[10058 eitan@radar ~/patchen/creduce !2!]%clang --version
FreeBSD clang version 3.1 (branches/release_31 156863) 20120523
Target: x86_64-unknown-freebsd10.0
Thread model: posix
[10063 eitan@radar ~/patchen/creduce ]%gmake
CXXFLAGS="-I/usr/local/include" CXX=clang++ CC=clang
...
In file included from AggregateToScalar.cpp:1:
In file included from AggregateToScalar.cpp:15:
./AggregateToScalar.h:62:16: error: virtual function
'HandleTopLevelDecl' has a different return type ('bool') than the
function it overrides (which has return type 'void')
   virtual bool HandleTopLevelDecl(clang::DeclGroupRef D);
                ^
/usr/local/include/clang/AST/ASTConsumer.h:51:16: note: overridden
virtual function is here
   virtual void HandleTopLevelDecl(DeclGroupRef D);
                ^
In file included from AggregateToScalar.cpp:1:
AggregateToScalar.cpp:111:25: error: virtual function
'HandleTopLevelDecl' has a different return type ('bool') than the
function it overrides (which has return type 'void')
bool AggregateToScalar::HandleTopLevelDecl(DeclGroupRef D)
                         ^
/usr/local/include/clang/AST/ASTConsumer.h:51:16: note: overridden
virtual function is here
   virtual void HandleTopLevelDecl(DeclGroupRef D);
                ^
2 errors generated.


Reply via email to