Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-975

MSVC 2015 generates C4577 warning for standard header file

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 1.5.1
    • 1.5.0
    • General
    • None
    • 0a8e2013d57134639c1bc72a400dddf2232e32f0

    Description

      Visual Studio 2015 Update 2 seems to require an exception handling mode to be set.

      a minimal application with just

      import qbs
      CppApplication {
          name: "minimal"
          files: "main.cpp"
      }
      

      and

      #include <iosfwd>
      
      int main(int argc, char **argv)
      {
      }
      

      compiles only with a warning:

      C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\iosfwd(384): warning C4577: 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc
      

      Passing

       cpp.enableExceptions:true
      

      on command line fixes the issue, but shouldn't be needed.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              jakepetroules Jake Petroules (DO NOT ASSIGN ISSUES)
              kkohne Kai Köhne
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes