Skip to content

Conversation

@kennykerr
Copy link
Collaborator

Fixes #659

Note that full Clang support is currently hampered by the fact that Clang doesn't like the current VC libraries and fails to compile them. Other than that, this update fixes two minor issues that Clang didn't like about recent changes to C++/WinRT.

         C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Tools\MSVC\14.27.29009\include\xutility(63,5): error : non-void constexpr function '_Bit_cast' should return a value [C:\git\cppwinrt\scratch\scratch.vcxproj]
         C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Tools\MSVC\14.27.29009\include\charconv(1196,15): error : no matching function for call to '_Bit_cast' [C:\git\cppwinrt\scratch\scratch.vcxproj]
         C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Tools\MSVC\14.27.29009\include\charconv(1291,9): error : no matching function for call to '_Assemble_floating_point_infinity' [C:\git\cppwinrt\scratch\scratch.vcxproj]
         C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Tools\MSVC\14.27.29009\include\charconv(1353,21): error : no matching function for call to '_Assemble_floating_point_infinity' [C:\git\cppwinrt\scratch\scratch.vcxproj]
         C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Tools\MSVC\14.27.29009\include\charconv(1269,15): error : no matching function for call to '_Bit_cast' [C:\git\cppwinrt\scratch\scratch.vcxproj]
         C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Tools\MSVC\14.27.29009\include\charconv(1512,13): error : no matching function for call to '_Assemble_floating_point_infinity' [C:\git\cppwinrt\scratch\scratch.vcxproj]
         C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Tools\MSVC\14.27.29009\include\charconv(1629,12): error : no matching function for call to '_Assemble_floating_point_value' [C:\git\cppwinrt\scratch\scratch.vcxproj]
         C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Tools\MSVC\14.27.29009\include\charconv(1392,16): error : no matching function for call to '_Assemble_floating_point_value' [C:\git\cppwinrt\scratch\scratch.vcxproj]
         C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Tools\MSVC\14.27.29009\include\charconv(1414,16): error : no matching function for call to '_Assemble_floating_point_value' [C:\git\cppwinrt\scratch\scratch.vcxproj]
         C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Tools\MSVC\14.27.29009\include\charconv(1442,12): error : no matching function for call to '_Assemble_floating_point_value' [C:\git\cppwinrt\scratch\scratch.vcxproj]
         C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Tools\MSVC\14.27.29009\include\charconv(1939,5): error : no matching function for call to '_Assemble_floating_point_infinity' [C:\git\cppwinrt\scratch\scratch.vcxproj]
         C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Tools\MSVC\14.27.29009\include\charconv(2003,14): error : no matching function for call to '_Bit_cast' [C:\git\cppwinrt\scratch\scratch.vcxproj]
         C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Tools\MSVC\14.27.29009\include\xutility(63,5): error : non-void constexpr function '_Bit_cast' should return a value [C:\git\cppwinrt\scratch\scratch.vcxproj]
         C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Tools\MSVC\14.27.29009\include\charconv(1196,15): error : no matching function for call to '_Bit_cast' [C:\git\cppwinrt\scratch\scratch.vcxproj]
         C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Tools\MSVC\14.27.29009\include\charconv(1291,9): error : no matching function for call to '_Assemble_floating_point_infinity' [C:\git\cppwinrt\scratch\scratch.vcxproj]
         C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Tools\MSVC\14.27.29009\include\charconv(1353,21): error : no matching function for call to '_Assemble_floating_point_infinity' [C:\git\cppwinrt\scratch\scratch.vcxproj]
         C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Tools\MSVC\14.27.29009\include\charconv(1269,15): error : no matching function for call to '_Bit_cast' [C:\git\cppwinrt\scratch\scratch.vcxproj]
         C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Tools\MSVC\14.27.29009\include\charconv(1512,13): error : no matching function for call to '_Assemble_floating_point_infinity' [C:\git\cppwinrt\scratch\scratch.vcxproj]
         C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Tools\MSVC\14.27.29009\include\charconv(1629,12): error : no matching function for call to '_Assemble_floating_point_value' [C:\git\cppwinrt\scratch\scratch.vcxproj]

@kennykerr kennykerr requested a review from oldnewthing June 25, 2020 15:41
private:
std::experimental::coroutine_handle<> m_handle;
resume_apartment_context m_context;
std::experimental::coroutine_handle<> m_handle;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The constructor and field order were inconsistent, leading to a Clang warning.

@kennykerr
Copy link
Collaborator Author

/azp run

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@kennykerr kennykerr merged commit 4fa0e40 into master Jun 25, 2020
@kennykerr kennykerr deleted the kennykerr-clang10 branch June 25, 2020 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Structured bindings and captures issue with Clang

3 participants