Commit bca3cea
committed
[Clang] Don't check incomplete CXXRecordDecl's members when transforming sizeof...(expr)
For a FunctionParmPackExpr that is used as the argument of a sizeof...(pack)
expression, we might exercise the logic that checks the CXXRecordDecl's
members regardless of the type being incomplete, when rebuilding
the DeclRefExpr into non-ODR-used forms.1 parent e0ea9fd commit bca3cea
File tree
3 files changed
+22
-2
lines changed- clang
- docs
- lib/Sema
- test/CXX/temp/temp.decls/temp.variadic
3 files changed
+22
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
796 | 796 | | |
797 | 797 | | |
798 | 798 | | |
| 799 | + | |
799 | 800 | | |
800 | 801 | | |
801 | 802 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19297 | 19297 | | |
19298 | 19298 | | |
19299 | 19299 | | |
19300 | | - | |
| 19300 | + | |
19301 | 19301 | | |
19302 | 19302 | | |
19303 | 19303 | | |
| |||
Lines changed: 20 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
0 commit comments