<html>
<head>
<base href="http://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - examples/ExceptionDemo/ExceptionDemo.cpp fails compiling"
href="http://bugs.llvm.org/show_bug.cgi?id=32782">32782</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>examples/ExceptionDemo/ExceptionDemo.cpp fails compiling
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>4.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>-New Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>dilyan.palauzov@aegee.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>[100%] Built target Kaleidoscope-Ch6
[100%] Built target Kaleidoscope-Ch7
[100%] Built target Kaleidoscope-Ch8
[100%] Built target ModuleMaker
[100%] Building CXX object
examples/ExceptionDemo/CMakeFiles/ExceptionDemo.dir/ExceptionDemo.cpp.o
/src/llvm/llvm-4.0.0.src/examples/ExceptionDemo/ExceptionDemo.cpp: In function
‘llvm::Function* createFunction(llvm::Module&, llvm::Type*, const ArgTypes&,
const ArgNames&, const string&, llvm::GlobalValue::LinkageTypes, bool, bool)’:
/src/llvm/llvm-4.0.0.src/examples/ExceptionDemo/ExceptionDemo.cpp:185:35:
error: cannot convert ‘llvm::Function::arg_iterator {aka
llvm::ilist_iterator<llvm::ilist_detail::node_options<llvm::Argument, true,
false, void>, false, false>}’ to ‘std::map<std::__cxx11::basic_string<char>,
llvm::Value*>::mapped_type {aka llvm::Value*}’ in assignment
namedValues[theArgNames[i]] = argIndex;
^~~~~~~~
/src/llvm/llvm-4.0.0.src/examples/ExceptionDemo/ExceptionDemo.cpp: In function
‘uintptr_t readSLEB128(const uint8_t**)’:
/src/llvm/llvm-4.0.0.src/examples/ExceptionDemo/ExceptionDemo.cpp:375:22:
warning: left shift of negative value [-Wshift-negative-value]
result |= (~0 << shift);
^~~~~
/src/llvm/llvm-4.0.0.src/examples/ExceptionDemo/ExceptionDemo.cpp: In function
‘_Unwind_Reason_Code ourPersonality(int, _Unwind_Action,
_Unwind_Exception_Class, _Unwind_Exception*, _Unwind_Context*)’:
/src/llvm/llvm-4.0.0.src/examples/ExceptionDemo/ExceptionDemo.cpp:796:56:
error: invalid conversion from ‘void*’ to ‘const uint8_t* {aka const unsigned
char*}’ [-fpermissive]
const uint8_t *lsda = _Unwind_GetLanguageSpecificData(context);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/src/llvm/llvm-4.0.0.src/examples/ExceptionDemo/ExceptionDemo.cpp:801:18:
warning: cast from type ‘const uint8_t* {aka const unsigned char*}’ to type
‘void*’ casts away qualifiers [-Wcast-qual]
(void*)lsda);
^~~~
make[2]: ***
[examples/ExceptionDemo/CMakeFiles/ExceptionDemo.dir/build.make:63:
examples/ExceptionDemo/CMakeFiles/ExceptionDemo.dir/ExceptionDemo.cpp.o] Error
1
make[2]: Target 'examples/ExceptionDemo/CMakeFiles/ExceptionDemo.dir/build' not
remade because of errors.
make[1]: *** [CMakeFiles/Makefile2:74042:
examples/ExceptionDemo/CMakeFiles/ExceptionDemo.dir/all] Error 2
[100%] Built target ParallelJIT
make[1]: Target 'all' not remade because of errors.
make: *** [Makefile:152: all] Error 2
make: Target 'default_target' not remade because of errors.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>