]> granicus.if.org Git - clang/commit
When there are extra or missing template parameter lists in a template
authorDouglas Gregor <dgregor@apple.com>
Wed, 14 Jul 2010 23:14:12 +0000 (23:14 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 14 Jul 2010 23:14:12 +0000 (23:14 +0000)
commit0167f3c25581c39cd024d7a924553959c4893381
tree9f11b9832088f2309a1434ae8be48f583facaac6
parent77d439a4d69ffe30a7607c07b3ec5113824fd53e
When there are extra or missing template parameter lists in a template
definition, we're likely going to end up breaking the invariants of
the template system, e.g., that the depths of template parameter lists
match up with the nesting template of the template. So, make sure we
mark such ill-formed declarations as invalid or don't even build them
at all.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108372 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/Sema.h
lib/Sema/SemaDecl.cpp
lib/Sema/SemaTemplate.cpp
test/SemaTemplate/deduction-crash.cpp [new file with mode: 0644]