[all-commits] [llvm/llvm-project] b22066: Properly convert all declaration non-type template...
Richard Smith via All-commits
all-commits at lists.llvm.org
Thu Dec 5 14:32:52 PST 2019
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: b220662a45c8067a2ae485ae34c1138d93506df9
https://github.com/llvm/llvm-project/commit/b220662a45c8067a2ae485ae34c1138d93506df9
Author: Richard Smith <richard at metafoo.co.uk>
Date: 2019-12-05 (Thu, 05 Dec 2019)
Changed paths:
M clang/lib/Sema/SemaTemplate.cpp
M clang/test/SemaCXX/exceptions-seh.cpp
M clang/test/SemaCXX/warn-bool-conversion.cpp
M clang/test/SemaTemplate/temp_arg_nontype_cxx1z.cpp
Log Message:
-----------
Properly convert all declaration non-type template arguments when
forming non-type template parameter values.
This reverts commit 93cc9dddd82f9e971f382ade6acf6634c5914966,
which reverted commit 11d10527852b4d3ed738aa90d8bec0f398160593.
We now always form `&x` when forming a pointer to a function rather than
trying to use function-to-pointer decay. This matches the behavior of
the old code in this case, but not the intent as described by the
comments.
More information about the All-commits
mailing list