]> granicus.if.org Git - clang/commit
When deducing an integral template argument for a non-type template
authorDouglas Gregor <dgregor@apple.com>
Fri, 26 Mar 2010 05:50:28 +0000 (05:50 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 26 Mar 2010 05:50:28 +0000 (05:50 +0000)
commit9d0e441036de0faa59d8039ce0c9967bda112c7f
treef93c5c2766a051ebfb25aa700448e14431d0c6f9
parentd325daa506338ab86f9dd468b48fd010673f49a6
When deducing an integral template argument for a non-type template
parameter, keep the integral value exactly as it was in the source
code rather than trying to convert it to the type of the non-type
template parameter (which may still be dependent!). The value will
then be converted to the appropriate type once we check the resulting
template arguments. Fixes PR6707.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99611 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaTemplateDeduction.cpp