]> granicus.if.org Git - clang/commit
When computing the conversion sequence in overload resolution
authorJohn McCall <rjmccall@apple.com>
Wed, 4 Apr 2012 02:40:27 +0000 (02:40 +0000)
committerJohn McCall <rjmccall@apple.com>
Wed, 4 Apr 2012 02:40:27 +0000 (02:40 +0000)
commite14ba2cec3807df892917171b590bac25b779b46
treecc76a1ed5bce070cde9b8c614626207c663a3df3
parent95e3872918557b55b62121a7df5f1ee76d45881a
When computing the conversion sequence in overload resolution
for converting an empty list to a scalar, be sure to initialize
the source and destination types so that comparison of conversion
sequences will work in case there are multiple viable candidates.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153993 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaOverload.cpp
test/CXX/over/over.match/over.match.best/over.best.ics/over.ics.list/p6.cpp [new file with mode: 0644]