swift
9c22a7a5 - [cxx-interop] Memberwise init is not synthesized for C++ type with templated using decl

Commit
1 year ago
[cxx-interop] Memberwise init is not synthesized for C++ type with templated using decl When Swift fails to import a member of a struct, it checks to see if this member could affect the memory layout of the struct, and if it can, Swift doesn't synthesize the memberwise initializer for this struct. This logic was overly restrictive and treated templated using-decls as potentially affecting the memory layout of the struct. rdar://113044949
Author
Parents
  • lib/ClangImporter
    • File
      ImportDecl.cpp
  • test/Interop/Cxx/class
    • Inputs
      • File
        memberwise-initializer.h
    • File
      memberwise-initializer-module-interface.swift