Allow (int[*]) { 1, 2 } cast style initialization. Experimental change from [*] to [?]. Fix issue where compile time declarations in expression list would not be handled properly.

This commit is contained in:
Christoffer Lerno
2025-01-25 22:10:12 +01:00
parent ca91ad4097
commit e40bab2d30
93 changed files with 529 additions and 466 deletions

View File

@@ -1,19 +1,19 @@
struct Foo
{
int x;
int[*] y; // #error: flexible array member must be the last element
int[?] y; // #error: flexible array member must be the last element
int z;
}
struct Bar
{
int[*] y; // #error: flexible array member cannot be the only element
int[?] y; // #error: flexible array member cannot be the only element
}
struct Baz
{
int y;
int[*] z;
int[?] z;
}
struct BazContainerOk