Re: [PATCH] gengtype: Handle braced initialisers in structs

2023-06-27 Thread Richard Biener via Gcc-patches
On Tue, Jun 27, 2023 at 7:38 AM Richard Sandiford via Gcc-patches wrote: > > I have a patch that adds braced initializers to a GTY structure. > gengtype didn't accept that, because it parsed the "{ ... }" in > " = { ... };" as the end of a statement (as "{ ... }" would be in > a function definitio

[PATCH] gengtype: Handle braced initialisers in structs

2023-06-26 Thread Richard Sandiford via Gcc-patches
I have a patch that adds braced initializers to a GTY structure. gengtype didn't accept that, because it parsed the "{ ... }" in " = { ... };" as the end of a statement (as "{ ... }" would be in a function definition) and so it didn't expect the following ";". This patch explicitly handles initial