nested flexible array member is a GCCism
This is NG. The ISO C section 6.7.2.1 explicitly states that structs having flexible array members "shall not be a member of a structure or an element of an array." git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7edb0a275c
commit
96268c1dbd
2
node.c
2
node.c
@ -1042,7 +1042,7 @@ rb_node_init(NODE *n, enum node_type type, VALUE a0, VALUE a1, VALUE a2)
|
|||||||
|
|
||||||
typedef struct node_buffer_elem_struct {
|
typedef struct node_buffer_elem_struct {
|
||||||
struct node_buffer_elem_struct *next;
|
struct node_buffer_elem_struct *next;
|
||||||
NODE buf[FLEX_ARY_LEN];
|
NODE buf[1];
|
||||||
} node_buffer_elem_t;
|
} node_buffer_elem_t;
|
||||||
|
|
||||||
struct node_buffer_struct {
|
struct node_buffer_struct {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user