]> granicus.if.org Git - clang/commit
When substituting a declaration non-type template argument for a
authorDouglas Gregor <dgregor@apple.com>
Mon, 8 Feb 2010 23:41:45 +0000 (23:41 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 8 Feb 2010 23:41:45 +0000 (23:41 +0000)
commitdcee98048d5147502da2b224f01d08f24aec2293
treee17796722c51d809abd3c5bf8821f3023c0a6687
parenta3890baf1256ff26081306c7fef70202f8223f41
When substituting a declaration non-type template argument for a
non-type template parameter that has reference type, augment the
qualifiers of the non-type template argument with those of the
referenced type. Fixes PR6250.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95607 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaTemplateInstantiate.cpp
test/CXX/temp/temp.arg/temp.arg.nontype/p5.cpp