http://llvm.org/bugs/show_bug.cgi?id=17573
Bug ID: 17573
Summary: Conflicting options: -save-temps -fno-exceptions
-fms-extensions
Product: new-bugs
Version: trunk
Hardware: PC
OS: Windows XP
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
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
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs