[all-commits] [llvm/llvm-project] 0dfb43: Fix handling of default arguments in __attribute__...

Richard Smith via All-commits all-commits at lists.llvm.org
Thu May 28 15:35:42 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 0dfb43deb6d5511a8ea69eeb7373a212ebd6c9c1
      https://github.com/llvm/llvm-project/commit/0dfb43deb6d5511a8ea69eeb7373a212ebd6c9c1
  Author: Richard Smith <richard at metafoo.co.uk>
  Date:   2020-05-28 (Thu, 28 May 2020)

  Changed paths:
    M clang/include/clang/Sema/Sema.h
    M clang/lib/Sema/SemaExpr.cpp
    M clang/lib/Sema/SemaOverload.cpp
    M clang/test/SemaCXX/enable_if.cpp

  Log Message:
  -----------
  Fix handling of default arguments in __attribute__((enable_if)).

We didn't properly build default argument expressions previously -- we
failed to build the wrapper CXXDefaultArgExpr node, which meant that
std::source_location misbehaved, and we didn't perform default argument
instantiation when necessary, which meant that dependent default
arguments in function templates didn't work at all.




More information about the All-commits mailing list