Commit 765304c
committed
[clang] fix partial ordering of NTTP packs
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 cfee056 commit 765304c
File tree
15 files changed
+354
-336
lines changed- clang
- docs
- include/clang
- AST
- Sema
- lib
- AST
- Sema
- test
- Import/pack-expansion-expr
- SemaTemplate
15 files changed
+354
-336
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
| 388 | + | |
388 | 389 | | |
389 | 390 | | |
390 | 391 | | |
| |||
| 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 | |
|---|---|---|---|
| |||
10126 | 10126 | | |
10127 | 10127 | | |
10128 | 10128 | | |
10129 | | - | |
10130 | | - | |
10131 | | - | |
10132 | | - | |
10133 | | - | |
10134 | | - | |
10135 | | - | |
| 10129 | + | |
| 10130 | + | |
| 10131 | + | |
| 10132 | + | |
| 10133 | + | |
| 10134 | + | |
| 10135 | + | |
| 10136 | + | |
10136 | 10137 | | |
10137 | 10138 | | |
10138 | 10139 | | |
| |||
11894 | 11895 | | |
11895 | 11896 | | |
11896 | 11897 | | |
11897 | | - | |
| 11898 | + | |
11898 | 11899 | | |
11899 | 11900 | | |
11900 | 11901 | | |
| |||
| 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