-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Open
Labels
WindowsPlatform: WindowsPlatform: WindowsbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.
Description
Description
swiftc -cxx-interoperability-mode=default winsdk.swift -explicit-module-build
error: compile-module-from-interface command failed with exit code 1 (use -v to see invocation)
S:\Program Files\Swift\Platforms\Windows.platform\Developer\SDKs\Windows.sdk\usr\lib\swift\windows\WinSDK.swiftmodule\x86_64-unknown-windows-msvc.private.swiftinterface:272:54: error: no type named '_GUID' in module '_GUIDDef'
270 | }
271 | extension _GUIDDef._GUID : @retroactive Swift.Equatable {
272 | @_transparent public static func == (lhs: _GUIDDef._GUID, rhs: _GUIDDef._GUID) -> Swift.Bool {
| `- error: no type named '_GUID' in module '_GUIDDef'
273 | lhs.uint128Value == rhs.uint128Value
274 | }
S:\Program Files\Swift\Platforms\Windows.platform\Developer\SDKs\Windows.sdk\usr\lib\swift\windows\WinSDK.swiftmodule\x86_64-unknown-windows-msvc.private.swiftinterface:272:75: error: no type named '_GUID' in module '_GUIDDef'
270 | }
271 | extension _GUIDDef._GUID : @retroactive Swift.Equatable {
272 | @_transparent public static func == (lhs: _GUIDDef._GUID, rhs: _GUIDDef._GUID) -> Swift.Bool {
| `- error: no type named '_GUID' in module '_GUIDDef'
273 | lhs.uint128Value == rhs.uint128Value
274 | }
S:\Program Files\Swift\Platforms\Windows.platform\Developer\SDKs\Windows.sdk\usr\lib\swift\windows\WinSDK.swiftmodule\x86_64-unknown-windows-msvc.private.swiftinterface:260:20: error: no type named '_GUID' in module '_GUIDDef'
258 | return b.boolValue
259 | }
260 | extension _GUIDDef._GUID {
| `- error: no type named '_GUID' in module '_GUIDDef'
261 | @usableFromInline
262 | @_transparent internal var uint128Value: Swift.UInt128 {
S:\Program Files\Swift\Platforms\Windows.platform\Developer\SDKs\Windows.sdk\usr\lib\swift\windows\WinSDK.swiftmodule\x86_64-unknown-windows-msvc.private.swiftinterface:271:20: error: no type named '_GUID' in module '_GUIDDef'
269 | }
270 | }
271 | extension _GUIDDef._GUID : @retroactive Swift.Equatable {
| `- error: no type named '_GUID' in module '_GUIDDef'
272 | @_transparent public static func == (lhs: _GUIDDef._GUID, rhs: _GUIDDef._GUID) -> Swift.Bool {
273 | lhs.uint128Value == rhs.uint128Value
S:\Program Files\Swift\Platforms\Windows.platform\Developer\SDKs\Windows.sdk\usr\lib\swift\windows\WinSDK.swiftmodule\x86_64-unknown-windows-msvc.private.swiftinterface:276:20: error: no type named '_GUID' in module '_GUIDDef'
274 | }
275 | }
276 | extension _GUIDDef._GUID : @retroactive Swift.Hashable {
| `- error: no type named '_GUID' in module '_GUIDDef'
277 | @_transparent public func hash(into hasher: inout Swift.Hasher) {
278 | hasher.combine(uint128Value)
Reproduction
Build the toolchain on the main branch on Windows after #85325
winsdk.swift
import WinSDKswiftc -cxx-interoperability-mode=default -explicit-module-build winsdk.swift
Expected behavior
A successful compile
Environment
The main branch on Windows
Additional information
No response
Metadata
Metadata
Assignees
Labels
WindowsPlatform: WindowsPlatform: WindowsbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.