Commit 954ccee
authored
[clang] fix partial ordering of NTTP packs (#134461)
This fixes partial ordering of pack expansions of NTTPs, by procedding
with the check using the pattern of the NTTP through the rules of the
non-pack case.
This also unifies almost all of the different versions of
FinishTemplateArgumentDeduction (except the function template case).
This makes sure they all follow the rules consistently, instantiating
the parameters and comparing those with the argument.
Fixes #1325621 parent 7fa388d commit 954ccee
File tree
15 files changed
+357
-337
lines changed- clang
- docs
- include/clang
- AST
- Sema
- lib
- AST
- Sema
- test
- Import/pack-expansion-expr
- SemaTemplate
15 files changed
+357
-337
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
396 | 396 | | |
397 | 397 | | |
398 | 398 | | |
| 399 | + | |
399 | 400 | | |
400 | 401 | | |
401 | 402 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4209 | 4209 | | |
4210 | 4210 | | |
4211 | 4211 | | |
4212 | | - | |
| 4212 | + | |
4213 | 4213 | | |
4214 | | - | |
4215 | | - | |
| 4214 | + | |
| 4215 | + | |
4216 | 4216 | | |
4217 | 4217 | | |
4218 | 4218 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10127 | 10127 | | |
10128 | 10128 | | |
10129 | 10129 | | |
10130 | | - | |
10131 | | - | |
10132 | | - | |
10133 | | - | |
10134 | | - | |
10135 | | - | |
10136 | | - | |
| 10130 | + | |
| 10131 | + | |
| 10132 | + | |
| 10133 | + | |
| 10134 | + | |
| 10135 | + | |
| 10136 | + | |
| 10137 | + | |
10137 | 10138 | | |
10138 | 10139 | | |
10139 | 10140 | | |
| |||
11895 | 11896 | | |
11896 | 11897 | | |
11897 | 11898 | | |
11898 | | - | |
| 11899 | + | |
11899 | 11900 | | |
11900 | 11901 | | |
11901 | 11902 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5852 | 5852 | | |
5853 | 5853 | | |
5854 | 5854 | | |
5855 | | - | |
5856 | | - | |
| 5855 | + | |
5857 | 5856 | | |
5858 | 5857 | | |
5859 | 5858 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8273 | 8273 | | |
8274 | 8274 | | |
8275 | 8275 | | |
8276 | | - | |
8277 | | - | |
| 8276 | + | |
8278 | 8277 | | |
8279 | 8278 | | |
8280 | 8279 | | |
8281 | 8280 | | |
8282 | | - | |
8283 | | - | |
| 8281 | + | |
| 8282 | + | |
8284 | 8283 | | |
8285 | 8284 | | |
8286 | 8285 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6201 | 6201 | | |
6202 | 6202 | | |
6203 | 6203 | | |
6204 | | - | |
| 6204 | + | |
6205 | 6205 | | |
6206 | 6206 | | |
6207 | 6207 | | |
| |||
6272 | 6272 | | |
6273 | 6273 | | |
6274 | 6274 | | |
6275 | | - | |
| 6275 | + | |
6276 | 6276 | | |
6277 | 6277 | | |
6278 | 6278 | | |
| |||
6325 | 6325 | | |
6326 | 6326 | | |
6327 | 6327 | | |
6328 | | - | |
| 6328 | + | |
6329 | 6329 | | |
6330 | 6330 | | |
6331 | 6331 | | |
| |||
6400 | 6400 | | |
6401 | 6401 | | |
6402 | 6402 | | |
6403 | | - | |
| 6403 | + | |
6404 | 6404 | | |
6405 | 6405 | | |
6406 | 6406 | | |
| |||
0 commit comments