]> granicus.if.org Git - clang/commit
Reapply the reference-binding patch applied below, along with a fix to
authorDouglas Gregor <dgregor@apple.com>
Fri, 7 May 2010 19:42:26 +0000 (19:42 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 7 May 2010 19:42:26 +0000 (19:42 +0000)
commit6b6d01fbc297d703f7ad1e605aa97afc6289a64f
treebfe46489bd351a4d340c1a00891758587578dd4e
parent100b3b915335834715afc81a3911b77668e215b2
Reapply the reference-binding patch applied below, along with a fix to
ensure that we complete the type when we need to look at constructors
during reference binding.

When determining whether the two types involved in reference binding
are reference-compatible, reference-related, etc., do not complete the
type of the reference itself because it is not necessary to determine
well-formedness of the program. Complete the type that we are binding
to, since that can affect whether we know about a derived-to-base
conversion.

Re-fixes PR7080.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103283 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaInit.cpp
lib/Sema/SemaOverload.cpp
test/SemaTemplate/instantiate-complete.cpp