[Sema][SVE] Reject arithmetic on pointers to sizeless types
authorRichard Sandiford <richard.sandiford@arm.com>
Thu, 27 Feb 2020 10:41:42 +0000 (10:41 +0000)
committerRichard Sandiford <richard.sandiford@arm.com>
Tue, 17 Mar 2020 11:35:20 +0000 (11:35 +0000)
commit94489f35a7f8e16d7fd553ddf96023cb78a2afbb
treeda8ce5ae02386c1a51c12514715cfed5218d31c3
parent010005f0774e13475c321f78b89bdc79eb78d5a5
[Sema][SVE] Reject arithmetic on pointers to sizeless types

This patch completes a trio of changes related to arrays of
sizeless types.  It rejects various forms of arithmetic on
pointers to sizeless types, in the same way as for other
incomplete types.

Differential Revision: https://reviews.llvm.org/D76086
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaExpr.cpp
clang/test/Sema/sizeless-1.c
clang/test/SemaCXX/sizeless-1.cpp