Page MenuHomePhabricator

[Sema][SVE] Reject by-copy capture of sizeless types
ClosedPublic

Authored by rsandifo-arm on Mar 6 2020, 4:51 AM.

Details

Summary

Since fields can't have sizeless type, it also doesn't make sense
to capture sizeless types by value in lambda expressions. This patch
makes sure that we diagnose that and that we use "sizeless type" rather
"incomplete type" in the associated message. (Both are correct, but
"sizeless type" is more specific and hopefully more user-friendly.)

Diff Detail

Event Timeline

rsandifo-arm created this revision.Mar 6 2020, 4:51 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 6 2020, 4:51 AM
This revision is now accepted and ready to land.Mar 11 2020, 7:19 PM
This revision was automatically updated to reflect the committed changes.