[cfe-commits] r41681 - in /cfe/trunk: Sema/Sema.h Sema/SemaDecl.cpp Sema/SemaExpr.cpp include/clang/Basic/DiagnosticKinds.def test/Sema/array-init.c

Fariborz Jahanian fjahanian at apple.com
Tue Sep 4 08:51:18 PDT 2007


After a checkout of latest source, following test failed. Is this a  
known problem.

- Fariborz

Sema/cxx-references.cpp
******************** TEST 'Sema/cxx-references.cpp' FAILED!  
********************
Command:
  clang -fsyntax-only Sema/cxx-references.cpp
Output:
Sema/cxx-references.cpp:8:12: warning: incompatible pointer types  
assigning 'int &*' to 'int *'
   int *p = &r;
            ^~
Sema/cxx-references.cpp:10:20: error: incompatible types assigning  
'int (int)' to 'int (&)(int)'
   int (&rg)(int) = g;
                    ^
Sema/cxx-references.cpp:13:18: error: incompatible types assigning  
'int [3]' to 'int (&)[3]'
   int (&ra)[3] = a;
                  ^
Sema/cxx-references.cpp:16:14: error: incompatible types assigning  
'int *' to 'int *&'
   int *& P = Q;
              ^
4 diagnostics generated.
******************** TEST 'Sema/cxx-references.cpp' FAILED!  
********************
>



More information about the cfe-commits mailing list