[clang] [Clang][Sema] fix outline member function template with default align crash (PR #78400)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 22 06:39:19 PST 2024
================
@@ -3051,6 +3051,7 @@ bool Sema::SubstDefaultArgument(
// default argument expression appears.
ContextRAII SavedContext(*this, FD);
std::unique_ptr<LocalInstantiationScope> LIS;
+ auto NewTemplateArgs = TemplateArgs;
----------------
erichkeane wrote:
Don't use auto here.
https://github.com/llvm/llvm-project/pull/78400
More information about the cfe-commits
mailing list