OSDN Git Service

Attempt to complete an incomplete expression type when considering a
authorRichard Smith <richard@metafoo.co.uk>
Fri, 8 Jan 2021 23:17:54 +0000 (15:17 -0800)
committerRichard Smith <richard@metafoo.co.uk>
Fri, 8 Jan 2021 23:19:28 +0000 (15:19 -0800)
commit2bf6e443e54604c7818c4d1a1837f3d091023270
treec4804f26921697840aef1a40df74398ecec68103
parente05baf40de8a3bbfcf4a765761b1147e94b7309c
Attempt to complete an incomplete expression type when considering a
reference binding to an expression.

We need to know the array bound in order to determine whether the
parameter type is reference-compatible with the argument type, so we
need to trigger instantiation in this case.
clang/include/clang/Sema/Sema.h
clang/lib/Sema/SemaInit.cpp
clang/lib/Sema/SemaTemplateDeduction.cpp
clang/lib/Sema/SemaType.cpp
clang/test/SemaTemplate/instantiate-static-var.cpp