Commit a3186be
authored
[clang][initlist] handle incomplete array type in Constant Expr Calculation (#155080)
fix: #151716
In #65918, support of incomplete array type is added in
TryReferenceListInitialization. It causes the crash in Constant Expr
Calculation since it only considers the case where it is
ConstantArrayType.
This patch wants to add support for incomplete array type also.1 parent 3e10bdd commit a3186be
File tree
3 files changed
+25
-5
lines changed- clang
- docs
- lib/AST
- test/CodeGenCXX
3 files changed
+25
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
| 341 | + | |
| 342 | + | |
341 | 343 | | |
342 | 344 | | |
343 | 345 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4030 | 4030 | | |
4031 | 4031 | | |
4032 | 4032 | | |
4033 | | - | |
4034 | | - | |
| 4033 | + | |
| 4034 | + | |
| 4035 | + | |
4035 | 4036 | | |
4036 | | - | |
| 4037 | + | |
| 4038 | + | |
4037 | 4039 | | |
4038 | 4040 | | |
4039 | 4041 | | |
| |||
4044 | 4046 | | |
4045 | 4047 | | |
4046 | 4048 | | |
4047 | | - | |
| 4049 | + | |
4048 | 4050 | | |
4049 | 4051 | | |
4050 | 4052 | | |
4051 | 4053 | | |
4052 | | - | |
| 4054 | + | |
| 4055 | + | |
4053 | 4056 | | |
4054 | 4057 | | |
4055 | 4058 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
35 | 50 | | |
0 commit comments