[cfe-users] compilation error

Aamer Wali aamer_wali at comsats.edu.pk
Tue Jan 22 03:14:26 PST 2013


Hello,

while building on Mac OS X (10.6.8) Snow-Leopard I encountered the  
following error message. Help needed.

Thanks,
Aamer



llvm[2]: Compiling ErrorOrTest.cpp for Debug+Asserts build
/llvm/include/llvm/Support/ErrorOr.h: In instantiation of  
?llvm::ErrorOr<int&>?:
/llvm/unittests/Support/ErrorOrTest.cpp:44:   instantiated from here
/llvm/include/llvm/Support/ErrorOr.h:175: error: forming reference to  
reference type ?int&?
/llvm/include/llvm/Support/ErrorOr.h:300: error: forming reference to  
reference type ?int&?
/llvm/unittests/Support/ErrorOrTest.cpp: In member function ?virtual  
void<unnamed>::ErrorOr_Types_Test::TestBody()?:
/llvm/unittests/Support/ErrorOrTest.cpp:45: error: assignment of  
read-only location
/llvm/unittests/Support/ErrorOrTest.cpp:45: error: cannot convert  
?int? to ?void ()()? in assignment
make[2]: *** [/build/unittests/Support/Debug+Asserts/ErrorOrTest.o] Error 1
make[1]: *** [Support/.makeall] Error 2
make: *** [all] Error 1




More information about the cfe-users mailing list