Commit 3fe85ca
authored
[clang] check constant template parameters in dependent contexts (#159463)
This patch makes sure constant template parameters are checked even in
dependent contexts.
This can for example diagnose narrowings earlier, but this is permitted
as these templates would have no valid instantiations.1 parent e8311f8 commit 3fe85ca
File tree
3 files changed
+19
-13
lines changed- clang
- docs
- lib/Sema
- test/SemaTemplate
3 files changed
+19
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
268 | | - | |
| 268 | + | |
| 269 | + | |
269 | 270 | | |
270 | 271 | | |
271 | 272 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5482 | 5482 | | |
5483 | 5483 | | |
5484 | 5484 | | |
5485 | | - | |
5486 | | - | |
5487 | | - | |
| 5485 | + | |
5488 | 5486 | | |
5489 | 5487 | | |
5490 | 5488 | | |
| |||
5494 | 5492 | | |
5495 | 5493 | | |
5496 | 5494 | | |
| 5495 | + | |
5497 | 5496 | | |
5498 | 5497 | | |
5499 | 5498 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | 120 | | |
129 | | - | |
| 121 | + | |
130 | 122 | | |
131 | 123 | | |
132 | 124 | | |
| |||
143 | 135 | | |
144 | 136 | | |
145 | 137 | | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
146 | 152 | | |
147 | 153 | | |
148 | 154 | | |
| |||
0 commit comments