]> granicus.if.org Git - clang/commit
[clang] Fixing incorrect implicit deduction guides (PR41549)
authorGauthier Harnisch <tyker1@outlook.com>
Fri, 14 Jun 2019 08:40:04 +0000 (08:40 +0000)
committerGauthier Harnisch <tyker1@outlook.com>
Fri, 14 Jun 2019 08:40:04 +0000 (08:40 +0000)
commit4a58b8483cde0d2ea84c2ad9741c83b45ede8f55
tree9b47c658205770574a3c82ed4ea8926f82ef8b97
parent20e4ccc974ae571714d649105c34fa03b3a1156f
[clang] Fixing incorrect implicit deduction guides (PR41549)

Summary:
[[ https://bugs.llvm.org/show_bug.cgi?id=41549 | bug report ]]

Before this patch, implicit deduction guides were generated from the first declaration found by lookup.
With this patch implicit deduction guides are generated from the definition of the class template.
Also added test that was previously failing.

Reviewers: rsmith

Reviewed By: rsmith

Subscribers: cfe-commits, Quuxplusone

Tags: #clang

Differential Revision: https://reviews.llvm.org/D63072

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@363361 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaTemplate.cpp
test/SemaCXX/cxx1z-class-template-argument-deduction.cpp