]> granicus.if.org Git - clang/commit
When converting an integral template argument value to a non-type
authorDouglas Gregor <dgregor@apple.com>
Wed, 4 May 2011 21:55:00 +0000 (21:55 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 4 May 2011 21:55:00 +0000 (21:55 +0000)
commitc7469374548b06e50aa8b4d41bf1a35338e9b358
treeb759ac27e202c12d6f10398651337a5599616f70
parent1f382510495b581e3028d670a23c7dcf5440be62
When converting an integral template argument value to a non-type
template parameter of type 'bool', force the value to be zero or
one. Fixes <rdar://problem/9169404>.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130873 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaTemplate.cpp
test/SemaTemplate/partial-spec-instantiate.cpp