[LLVMdev] Final added to parser<bool>

reed kotler rkotler at mips.com
Wed Mar 18 18:48:54 PDT 2015


Hi David,

Is there a reason that we need to have "final" for parser<bool> ???

This breaks the compilation of mclinker which derives a class from this.

In file included from 
/home/rkotler/workspace/mclinker/lib/Support/CommandLine.cpp:9:0:
/home/rkotler/workspace/mclinker/include/mcld/Support/CommandLine.h:49:7: error: 
cannot derive from ‘final’ base ‘llvm::cl::parser<bool>’ in derived type 
‘llvm::cl::FalseParser’
make[2]: *** [Support/CommandLine.o] Error 1
make[2]: Leaving directory `/home/rkotler/mclinker_build/lib'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/rkotler/mclinker_build/lib'
make: *** [all-recursive] Error 1



Reed




More information about the llvm-dev mailing list