Unable to import Foundation when using C++ interoperability for SDL

I’m trying to Swift’s C++ interoperability, and it’s been fine so far, but I’ve now tried to import Foundation, and run into a problem.

When the following code is compiled:

// Test.swift
import Foundation
import SDL

print(ISO8601DateFormatter().string(from: Date()))
// module.modulemap
module SDL {
		 header <SDL3/SDL.h>

		 export *
}

With this command:

swiftc Test.swift -cxx-interoperability-mode=default

I get the following compiler output:

Is there a way to get around this?