A structure with a flexible array member shall not be a member of a structure or an element of an array according to the ISO C Standard.
This commit is contained in:
9
test/err/bug2017-fam-element.c
Normal file
9
test/err/bug2017-fam-element.c
Normal file
@@ -0,0 +1,9 @@
|
||||
/* Bug #2017 - cc65 erroneously allows arrays of structs with flexible array members */
|
||||
|
||||
struct z {
|
||||
int a;
|
||||
int c;
|
||||
int b[];
|
||||
};
|
||||
|
||||
struct z y[3]; /* Should be an error */
|
||||
Reference in New Issue
Block a user