]> granicus.if.org Git - clang/commit
When attempting to complete an incomplete array bound type in an expression,
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 14 Dec 2017 15:40:16 +0000 (15:40 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 14 Dec 2017 15:40:16 +0000 (15:40 +0000)
commitb007293d31c4fbcd73592302a948fb3bac5d36a7
tree797c83196da81daa655d335c5b9ecd3d95dd7c0e
parent96881be75c9092dabbb19ccae56e64af7ad29e90
When attempting to complete an incomplete array bound type in an expression,
update the type from the definition even if we didn't instantiate a definition.

We may have instantiated the definition in an earlier stage of semantic
analysis, after creating the DeclRefExpr but before we reach a point where a
complete expression type is required.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@320709 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaType.cpp
test/SemaTemplate/cxx17-inline-variables.cpp