<html>
<head>
<base href="http://llvm.org/bugs/" />
</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 --- - Conflicting options: -save-temps -fno-exceptions -fms-extensions"
href="http://llvm.org/bugs/show_bug.cgi?id=17573">17573</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Conflicting options: -save-temps -fno-exceptions -fms-extensions
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows XP
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>llvm@meinersbur.de
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>In any file that includes <exception>, for instance:
#include <tuple>
int main() {
return 0;
}
Using the 3 options -save-temps -fno-exceptions -fms-extensions at the same
time will give an error:
$ clang++ -Ic:/MinGW/lib/gcc/mingw32/4.8.1/include/c++
-Ic:/MinGW/lib/gcc/mingw32/4.8.1/include/c++/mingw32 -std=gnu++11 -w hello.cpp
-save-temps -fms-extensions -fno-exceptions
c:/MinGW/lib/gcc/mingw32/4.8.1/include/c++\bits/nested_exception.h:121:7:
error: cannot use 'throw' with exceptions disabled
{ throw __ex; }
^
c:/MinGW/lib/gcc/mingw32/4.8.1/include/c++\bits/nested_exception.h:126:7:
error: cannot use 'throw' with exceptions disabled
{ throw _Nested_exception<_Ex>(static_cast<_Ex&&>(__ex)); }
^
c:/MinGW/lib/gcc/mingw32/4.8.1/include/c++\bits/nested_exception.h:139:9:
error: cannot use 'throw' with exceptions disabled
throw __ex;
Leaving away any of those flags will make it compile.
Tested on
Windows clang r192572 mingw32 gcc/libstdc++ 4.8.1 and
Ubuntu clang 3.4 gcc/libstdc++ 4.8.1</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>