Files
Allan Shortlidge 1cc1585eea Sema: Suppress memberwise init synthesis if init accessors are unavailable.
When some of a struct's members have init accessors with availability
restrictions, the compiler was synthesizing a memberwise initializer without
also giving the same availability restrictions to it. This could result in
runtime crashes or a failure to link depending on the nature of the
availability restrictions. The developer should be required to write explicit
initializers for these structs since the compiler cannot guess how to handle
the initial values for unavailable properties.

Resolves rdar://174185479.
2026-07-14 19:24:17 -07:00
..