llvm-project
f8b96160 - [Clang] skip default argument instantiation for non-defining friend declarations (#113777)

Commit
1 year ago
[Clang] skip default argument instantiation for non-defining friend declarations (#113777) This fixes a crash when instantiating default arguments for templated friend function declarations which lack a definition. There are implementation limits which prevents us from finding the pattern for such functions, and this causes difficulties setting up the instantiation scope for the function parameters. This patch skips instantiating the default argument in these cases, which causes a minor regression in error recovery, but otherwise avoids the crash. Fixes #113324
Author
Parents
Loading