Commit 9fbd4ab
committed
[Concepts] Do not check constraints if not all template arguments have been deduced
We previously checked the constraints of instantiated function templates even in cases where
PartialOverloading was true and not all template arguments have been deduced, which caused crashes
in clangd (bug 44714).
We now check if all arguments have been deduced before checking constraints in partial overloading
scenarios.
(cherry picked from commit 5fef14d)1 parent 2804f35 commit 9fbd4ab
File tree
2 files changed
+15
-6
lines changed- clang
- lib/Sema
- test/CXX/temp/temp.deduct
2 files changed
+15
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3439 | 3439 | | |
3440 | 3440 | | |
3441 | 3441 | | |
3442 | | - | |
3443 | | - | |
3444 | | - | |
| 3442 | + | |
| 3443 | + | |
| 3444 | + | |
| 3445 | + | |
| 3446 | + | |
3445 | 3447 | | |
3446 | | - | |
3447 | | - | |
3448 | | - | |
| 3448 | + | |
| 3449 | + | |
| 3450 | + | |
| 3451 | + | |
3449 | 3452 | | |
3450 | 3453 | | |
3451 | 3454 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
0 commit comments