Out of line class template declaration specializations aren't created at the time they have their template arguments checked, so we previously weren't doing any amount of work to substitute the constraints before comparison. This resulted in the out of line definition's difference in 'depth' causing the constraints to compare differently. This patch corrects that. Additionally, it handles ClassTemplateDecl when collecting template arguments. Fixes: #61763
66 KiB
66 KiB