Commit 9ac2924
authored
[Clang] Fix the source location of default template arguments in placeholder constraints (llvm#158414)
We discovered this issue while working on the concept normalization
refactoring. We missed the source location when diagnosing the
instantiation point of the placeholder constraints, which is involved by
the substitution of default template arguments that happens before
constraint evaluation.
See the issue alive: https://godbolt.org/z/cWr9qP3E81 parent b31f8cb commit 9ac2924
File tree
3 files changed
+25
-1
lines changed- clang
- docs
- lib/Sema
- test/SemaTemplate
3 files changed
+25
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
288 | 291 | | |
289 | 292 | | |
290 | 293 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5180 | 5180 | | |
5181 | 5181 | | |
5182 | 5182 | | |
5183 | | - | |
| 5183 | + | |
5184 | 5184 | | |
5185 | 5185 | | |
5186 | 5186 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1251 | 1251 | | |
1252 | 1252 | | |
1253 | 1253 | | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
1254 | 1275 | | |
1255 | 1276 | | |
1256 | 1277 | | |
| |||
0 commit comments