Commit 00a2038
committed
[clang][initlist] handle incomplete array type in Constant Expr Calculation
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 428ffbd commit 00a2038
File tree
2 files changed
+23
-4
lines changed- clang
- lib/AST
- test/CodeGenCXX
2 files changed
+23
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4030 | 4030 | | |
4031 | 4031 | | |
4032 | 4032 | | |
4033 | | - | |
| 4033 | + | |
| 4034 | + | |
| 4035 | + | |
| 4036 | + | |
| 4037 | + | |
4034 | 4038 | | |
4035 | | - | |
| 4039 | + | |
4036 | 4040 | | |
4037 | 4041 | | |
4038 | 4042 | | |
| |||
4043 | 4047 | | |
4044 | 4048 | | |
4045 | 4049 | | |
4046 | | - | |
| 4050 | + | |
4047 | 4051 | | |
4048 | 4052 | | |
4049 | 4053 | | |
4050 | 4054 | | |
4051 | | - | |
| 4055 | + | |
4052 | 4056 | | |
4053 | 4057 | | |
4054 | 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