]> granicus.if.org Git - clang/commit
[serialization] PR34728: Don't assume that only a suffix of template
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 31 Jul 2018 21:01:53 +0000 (21:01 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 31 Jul 2018 21:01:53 +0000 (21:01 +0000)
commit84fd36a067fc9b9529d42ff596b22fff8a607a28
tree6b2a6ddf5c84aab01d07698f9ccfeb34a6125ee1
parent4b1d99562879a0e3ff14137592345925f32a8482
[serialization] PR34728: Don't assume that only a suffix of template
parameters can have default arguments.

At least for function templates and class template partial
specializations, it's possible for a template parameter with a default
argument to be followed by a non-pack template parameter with no default
argument, and this case was not properly handled here.

Testcase by Steve O'Brien!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@338438 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Serialization/ASTReaderDecl.cpp
test/PCH/cxx-templates.cpp
test/PCH/cxx-templates.h