]> granicus.if.org Git - clang/commit
[Sema] Diagnose array access preceding the array bounds even when the base type is...
authorBruno Ricci <riccibrun@gmail.com>
Tue, 8 Jan 2019 13:52:54 +0000 (13:52 +0000)
committerBruno Ricci <riccibrun@gmail.com>
Tue, 8 Jan 2019 13:52:54 +0000 (13:52 +0000)
commit1ad54e198af85c779c11a265af0737772300051d
tree57f8a187c614f4a13d516a120cb46b647fdfd968
parentddc3fb27d3231b95658f460a74ce24e9d645eac2
[Sema] Diagnose array access preceding the array bounds even when the base type is incomplete.

When the type of the base expression after IgnoreParenCasts is incomplete,
it is still possible to diagnose an array access which precedes the array
bounds.

This is a follow-up on D55862 which added an early return when the type of
the base expression after IgnoreParenCasts was incomplete.

Differential Revision: https://reviews.llvm.org/D56050

Reviewed By: efriedma

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@350622 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaChecking.cpp
test/SemaCXX/array-bounds.cpp