[LLVMbugs] [Bug 10652] New: GCC 4.7 & Clang trunk

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Aug 13 05:29:22 PDT 2011


http://llvm.org/bugs/show_bug.cgi?id=10652

           Summary: GCC 4.7 & Clang trunk
           Product: clang
           Version: trunk
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: javpicorel at gmail.com
                CC: llvmbugs at cs.uiuc.edu


Using the gcc trunk (4.7), clang shows and error while compiling
a lib 'llvm-trunk/tools/clang/lib/AST/Stmt.cpp', there are a lot of error
messages very similar so I'll put only a few of them:

In file included from
/export/home/picorel/filesCloud9/llvm-trunk/tools/clang/lib/AST/Stmt.cpp:138:0:
/export/home/picorel/filesCloud9/llvm-trunk/obj-debug/tools/clang/lib/AST/../../include/clang/AST/StmtNodes.inc:
In function 'void check_implementations()':
/export/home/picorel/filesCloud9/llvm-trunk/obj-debug/tools/clang/lib/AST/../../include/clang/AST/StmtNodes.inc:15:1:
error: no matching function for call to 'implement
s_getSourceRange(clang::SourceRange (clang::AsmStmt::*)()const)'
/export/home/picorel/filesCloud9/llvm-trunk/obj-debug/tools/clang/lib/AST/../../include/clang/AST/StmtNodes.inc:15:1:
note: candidates are:
/export/home/picorel/filesCloud9/llvm-trunk/tools/clang/lib/AST/Stmt.cpp:118:27:
note: template<class T> {anonymous}::good
{anonymous}::implements_getSourceRange(clang:
:SourceRange (T::*)())
/export/home/picorel/filesCloud9/llvm-trunk/tools/clang/lib/AST/Stmt.cpp:118:27:
note:   template argument deduction/substitution failed:
/export/home/picorel/filesCloud9/llvm-trunk/obj-debug/tools/clang/lib/AST/../../include/clang/AST/StmtNodes.inc:15:1:
note:   types 'clang::SourceRange (T::)()' and 'cl
ang::SourceRange (clang::AsmStmt::)()const' have incompatible cv-qualifiers
/export/home/picorel/filesCloud9/llvm-trunk/tools/clang/lib/AST/Stmt.cpp:121:21:
note: {anonymous}::bad
{anonymous}::implements_getSourceRange(clang::SourceRange (clang
::Stmt::*)())
/export/home/picorel/filesCloud9/llvm-trunk/tools/clang/lib/AST/Stmt.cpp:121:21:
note:   no known conversion for argument 1 from 'clang::SourceRange
(clang::AsmStmt::*)
()const' to 'clang::SourceRange (clang::Stmt::*)()'
/export/home/picorel/filesCloud9/llvm-trunk/obj-debug/tools/clang/lib/AST/../../include/clang/AST/StmtNodes.inc:21:1:
error: no matching function for call to 'implement
s_getSourceRange(clang::SourceRange (clang::BreakStmt::*)()const)'
/export/home/picorel/filesCloud9/llvm-trunk/obj-debug/tools/clang/lib/AST/../../include/clang/AST/StmtNodes.inc:21:1:
note: candidates are:
/export/home/picorel/filesCloud9/llvm-trunk/tools/clang/lib/AST/Stmt.cpp:118:27:
note: template<class T> {anonymous}::good
{anonymous}::implements_getSourceRange(clang:
:SourceRange (T::*)())
/export/home/picorel/filesCloud9/llvm-trunk/tools/clang/lib/AST/Stmt.cpp:118:27:
note:   template argument deduction/substitution failed:
/export/home/picorel/filesCloud9/llvm-trunk/obj-debug/tools/clang/lib/AST/../../include/clang/AST/StmtNodes.inc:21:1:
note:   types 'clang::SourceRange (T::)()' and 'cl
ang::SourceRange (clang::BreakStmt::)()const' have incompatible cv-qualifiers
/export/home/picorel/filesCloud9/llvm-trunk/tools/clang/lib/AST/Stmt.cpp:121:21:
note: {anonymous}::bad
{anonymous}::implements_getSourceRange(clang::SourceRange (clang
::Stmt::*)())
/export/home/picorel/filesCloud9/llvm-trunk/tools/clang/lib/AST/Stmt.cpp:121:21:
note:   no known conversion for argument 1 from 'clang::SourceRange
(clang::BreakStmt::
*)()const' to 'clang::SourceRange (clang::Stmt::*)()'
/export/home/picorel/filesCloud9/llvm-trunk/obj-debug/tools/clang/lib/AST/../../include/clang/AST/StmtNodes.inc:27:1:
error: no matching function for call to 'implement
s_getSourceRange(clang::SourceRange (clang::CXXCatchStmt::*)()const)'
/export/home/picorel/filesCloud9/llvm-trunk/obj-debug/tools/clang/lib/AST/../../include/clang/AST/StmtNodes.inc:27:1:
note: candidates are:
/export/home/picorel/filesCloud9/llvm-trunk/tools/clang/lib/AST/Stmt.cpp:118:27:
note: template<class T> {anonymous}::good
{anonymous}::implements_getSourceRange(clang:
:SourceRange (T::*)())
/export/home/picorel/filesCloud9/llvm-trunk/tools/clang/lib/AST/Stmt.cpp:118:27:
note:   template argument deduction/substitution failed:
/export/home/picorel/filesCloud9/llvm-trunk/obj-debug/tools/clang/lib/AST/../../include/clang/AST/StmtNodes.inc:27:1:
note:   types 'clang::SourceRange (T::)()' and 'cl
ang::SourceRange (clang::CXXCatchStmt::)()const' have incompatible
cv-qualifiers

Any idea? 

Regards

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list