[llvm-bugs] [Bug 34805] New: Regression(314461 or 314462): clang-cl can no longer compile COM code

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Oct 2 09:19:43 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=34805

            Bug ID: 34805
           Summary: Regression(314461 or 314462): clang-cl can no longer
                    compile COM code
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: nicolasweber at gmx.de
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org

Our clang/win chromium bots turned red. Error:

../..\remoting/host/win/rdp_desktop_session.h(67,3):  error: attribute
'nothrow' ignored due to conflicting exception specification
[-Werror,-Wignored-attributes]
c:\b\c\win_toolchain\vs_files\9bc7ccbf9f4bd50d4a3bd185e8ca94ff1618de0b\win_sdk\bin\..\..\vc\tools\msvc\14.11.25503\atlmfc\include\atlcom.h(2358,2):
 note: expanded from macro 'END_COM_MAP'
        STDMETHOD(QueryInterface)( \
        ^
c:\b\c\win_toolchain\vs_files\9bc7ccbf9f4bd50d4a3bd185e8ca94ff1618de0b\win_sdk\bin\..\..\win_sdk\include\10.0.15063.0\um\combaseapi.h(198,42):
 note: expanded from macro 'STDMETHOD'
#define STDMETHOD(method)        virtual COM_DECLSPEC_NOTHROW HRESULT
STDMETHODCALLTYPE method
                                         ^
c:\b\c\win_toolchain\vs_files\9bc7ccbf9f4bd50d4a3bd185e8ca94ff1618de0b\win_sdk\bin\..\..\win_sdk\include\10.0.15063.0\um\combaseapi.h(193,30):
 note: expanded from macro 'COM_DECLSPEC_NOTHROW'
#define COM_DECLSPEC_NOTHROW DECLSPEC_NOTHROW
                             ^
c:\b\c\win_toolchain\vs_files\9bc7ccbf9f4bd50d4a3bd185e8ca94ff1618de0b\win_sdk\bin\..\..\win_sdk\include\10.0.15063.0\um\winnt.h(198,39):
 note: expanded from macro 'DECLSPEC_NOTHROW'
#define DECLSPEC_NOTHROW   __declspec(nothrow)
                                      ^
note: exception specification declared here


The code in question:

  BEGIN_COM_MAP(RdpDesktopSession)
    COM_INTERFACE_ENTRY(IRdpDesktopSession)
    COM_INTERFACE_ENTRY(IUnknown)
  END_COM_MAP()


So this is all system header code. Let's revert to get things green again, and
then think about what to do.

-- 
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/20171002/d6dde9a1/attachment.html>


More information about the llvm-bugs mailing list