Properly collect template arguments from a class-scope function template
authorRichard Smith <richard@metafoo.co.uk>
Tue, 10 Nov 2020 23:52:36 +0000 (15:52 -0800)
committerRichard Smith <richard@metafoo.co.uk>
Tue, 10 Nov 2020 23:55:19 +0000 (15:55 -0800)
commitc6d86b6b45a8e40457286c78321a4680b459e800
treec6a43a5a3bac507dd61ac3ed2d87b2c2cfe55ca2
parentc052510c0b0d445d2c2b5fd7f6166016275a03a1
Properly collect template arguments from a class-scope function template
specialization.

Fixes a crash-on-valid if further template parameters are introduced
within the specialization (by a generic lambda).
clang/lib/Sema/SemaExpr.cpp
clang/lib/Sema/SemaTemplateInstantiate.cpp
clang/test/SemaTemplate/instantiate-member-specialization.cpp [new file with mode: 0644]