Found during clang 15 RC1 testing due to the new diagnostic added by @royjacobson since clang 14. Uncertain if this fix meets the bar to also be applied to the release branch.
If accepted, I'll need someone with commit access to submit on my behalf.
Differential D131730
__has_trivial_copy should map to __is_trivially_copyable Authored by zahen on Aug 11 2022, 3:03 PM.
Details Found during clang 15 RC1 testing due to the new diagnostic added by @royjacobson since clang 14. Uncertain if this fix meets the bar to also be applied to the release branch. If accepted, I'll need someone with commit access to submit on my behalf.
Diff Detail
Event TimelineComment Actions LGTM, thank you for this patch! Could you add name+email for the commit message? Comment Actions Did @royjacobson 's patch make it to the 15.0 branch? If so, Roy: After this is committed, can you file to get this merged into the 15.x branch? This seems trivial enough (HAH!) of a fix that it is zero risk, and also keeps it from being all that embarassing here. Comment Actions Yes this is definitely in 15. During RC testing the diagnostic fired. The test build where I followed the suggestion and replaced has_trivial_copy with is_trivially_constructible didn't go very well. |