Fixing flexible array resolution.

This commit is contained in:
Christoffer Lerno
2024-06-21 18:36:39 +02:00
parent e8e615f4db
commit 684850dda1
4 changed files with 28 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
struct Abc
{
Foo[4] x; // #error: Arrays of structs with flexible array members
}
struct Foo
{
int a;
int[*] x;
}
struct Foo2
{
int a;
int[*] x, y; // #error: must be the last element
}