[all-commits] [llvm/llvm-project] 2bf6e4: Attempt to complete an incomplete expression type ...

Richard Smith via All-commits all-commits at lists.llvm.org
Fri Jan 8 15:19:50 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2bf6e443e54604c7818c4d1a1837f3d091023270
      https://github.com/llvm/llvm-project/commit/2bf6e443e54604c7818c4d1a1837f3d091023270
  Author: Richard Smith <richard at metafoo.co.uk>
  Date:   2021-01-08 (Fri, 08 Jan 2021)

  Changed paths:
    M clang/include/clang/Sema/Sema.h
    M clang/lib/Sema/SemaInit.cpp
    M clang/lib/Sema/SemaTemplateDeduction.cpp
    M clang/lib/Sema/SemaType.cpp
    M clang/test/SemaTemplate/instantiate-static-var.cpp

  Log Message:
  -----------
  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.




More information about the All-commits mailing list