seltzered / ccons

Automatically exported from code.google.com/p/ccons
MIT License
0 stars 0 forks source link

Parser.h: Module does not name a type #19

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. clang --version
Debian clang version 3.0-6 (tags/RELEASE_30/final) (based on LLVM 3.0)
Target: i386-pc-linux-gnu
Thread model: posix
2. make
3. ccons$ make
[  7%] Building CXX object CMakeFiles/ccons.dir/ccons.cpp.o
[ 14%] Building CXX object CMakeFiles/ccons.dir/Diagnostics.cpp.o
[ 21%] Building CXX object CMakeFiles/ccons.dir/ClangUtils.cpp.o
[ 28%] Building CXX object CMakeFiles/ccons.dir/Console.cpp.o
In file included from /home/me/build/ccons/Console.cpp:42:0:
/home/me/build/ccons/Parser.h:59:10: error: ‘Module’ in namespace 
‘clang’ does not name a type
In file included from /home/me/build/ccons/Console.cpp:45:0:
/home/me/build/ccons/Visitors.h: In instantiation of 
‘ccons::FunctionBodyConsumer<ccons::StmtSplitter>’:
/home/me/build/ccons/Console.cpp:176:45:   instantiated from here
/home/me/build/ccons/Visitors.h:89:7: error: conflicting return type specified 
for ‘bool 
ccons::FunctionBodyConsumer<T>::HandleTopLevelDecl(clang::DeclGroupRef) [with T 
= ccons::StmtSplitter]’
/usr/include/clang/AST/ASTConsumer.h:51:16: error:   overriding ‘virtual void 
clang::ASTConsumer::HandleTopLevelDecl(clang::DeclGroupRef)’
/home/me/build/ccons/Visitors.h: In instantiation of 
‘ccons::FunctionBodyConsumer<ccons::StmtFinder>’:
/home/me/build/ccons/Console.cpp:214:43:   instantiated from here
/home/me/build/ccons/Visitors.h:89:7: error: conflicting return type specified 
for ‘bool 
ccons::FunctionBodyConsumer<T>::HandleTopLevelDecl(clang::DeclGroupRef) [with T 
= ccons::StmtFinder]’
/usr/include/clang/AST/ASTConsumer.h:51:16: error:   overriding ‘virtual void 
clang::ASTConsumer::HandleTopLevelDecl(clang::DeclGroupRef)’

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
latest ccons svn Thu Apr 26 11:34:58 PDT 2012
clang --version
Debian clang version 3.0-6 (tags/RELEASE_30/final) (based on LLVM 3.0)
Target: i386-pc-linux-gnu
Thread model: posix

Please provide any additional information below.

Original issue reported on code.google.com by trfm...@gmail.com on 26 Apr 2012 at 6:35

GoogleCodeExporter commented 9 years ago
It builds fine against clang/LLVM tip of tree now. Marking as Fixed.

Original comment by Alexei.Svitkine@gmail.com on 10 Jul 2012 at 4:04