]> granicus.if.org Git - clang/commit
Use a substituted type when determining how to substitute in non-type template
authorJohn McCall <rjmccall@apple.com>
Sat, 6 Feb 2010 10:23:53 +0000 (10:23 +0000)
committerJohn McCall <rjmccall@apple.com>
Sat, 6 Feb 2010 10:23:53 +0000 (10:23 +0000)
commit645cf44cc34371c808743e5e7c19bb41ff593ca0
treea6aac211a6ef7f6b01b6b6b4484b27e4075d0769
parentb372f51166bdf7e2951ef4820941ec3523086865
Use a substituted type when determining how to substitute in non-type template
params.  Don't insert addrof operations when matching against a pointer;
array/function conversions should take care of this for us, assuming the
argument type-checked in the first place.  Add a fixme where we seem to be
using a less-restrictive reference type than we should.

Fixes PR 6249.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95495 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaTemplateInstantiate.cpp
test/SemaTemplate/temp_arg_nontype.cpp