]> granicus.if.org Git - clang/commit
When a function template's template parameter has a default argument,
authorDouglas Gregor <dgregor@apple.com>
Fri, 4 Feb 2011 03:57:22 +0000 (03:57 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 4 Feb 2011 03:57:22 +0000 (03:57 +0000)
commitee5d21f63714459f39e0be28fec9dbecf0720505
tree03158b5af58ce3e36c961ec82a7fdb2ddae7932f
parent398c610b16728b4398214367dd0effd9d2e61340
When a function template's template parameter has a default argument,
it's okay for the following template parameters to not have default
arguments (since those template parameters can still be
deduced). Also, downgrade the error about default template arguments
in function templates to an extension warning, since this is a
harmless C++0x extension.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124855 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaTemplate.cpp
test/CXX/temp/temp.param/p11-0x.cpp
test/CXX/temp/temp.param/p9.cpp