[cfe-commits] TOT diff return override build error

Douglas Gregor dgregor at apple.com
Sat Nov 19 11:25:08 PST 2011


Thanks! Should be fixed in Clang r145001.

On Nov 19, 2011, at 10:27 AM, Garrison Venn wrote:

> llvm[4]: Compiling PrintFunctionNames.cpp for Release+Asserts build (PIC)
> <root dir>/llvm/tools/clang/examples/PrintFunctionNames/PrintFunctionNames.cpp:26:16: error: virt\
> ual function 'HandleTopLevelDecl' has a different return type ('void') than the\
> function it overrides (which has return type 'bool')
>  virtual void HandleTopLevelDecl(DeclGroupRef DG) {
>               ^
> <root dir>/llvm/tools/clang/examples/PrintFunctionNames/../../include/clang/AST/ASTConsumer.h:53:\
> 16: note: overridden virtual function is here
>  virtual bool HandleTopLevelDecl(DeclGroupRef D);
>               ^
> 1 error generated.
> make[4]: *** [<obj root dir>/llvm/tools/clang/examples/PrintFunctionNames/Release+Asserts/PrintFunctionNames.o] Error 1
> make[3]: *** [PrintFunctionNames/.makeall] Error 2
> make[2]: *** [examples/.makeall] Error 2
> make[1]: *** [clang/.makeall] Error 2
> make: *** [all] Error 1
> 
> 
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits




More information about the cfe-commits mailing list