[LLVMbugs] [Bug 17573] New: Conflicting options: -save-temps -fno-exceptions -fms-extensions

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Oct 14 07:44:46 PDT 2013


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: unassignedbugs at nondot.org
          Reporter: llvm at meinersbur.de
                CC: llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131014/05977f0b/attachment.html>


More information about the llvm-bugs mailing list