[PATCH] D45755: [Sema] Do not match function type with const T in template argument deduction
Lei Liu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 17 23:33:22 PDT 2018
lliu0 created this revision.
lliu0 added reviewers: rjmccall, vsapsai.
Herald added a subscriber: cfe-commits.
>From http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_active.html#1584, function type should not match cv-qualified type in template argument deduction. This also matches what GCC and EDG do in template argument deduction.
Repository:
rC Clang
https://reviews.llvm.org/D45755
Files:
lib/Sema/SemaTemplateDeduction.cpp
test/CXX/drs/dr15xx.cpp
test/CXX/drs/dr4xx.cpp
test/SemaTemplate/function-pointer-qualifier.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45755.142885.patch
Type: text/x-patch
Size: 3189 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180418/25cef608/attachment.bin>
More information about the cfe-commits
mailing list