https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99736
Bug ID: 99736
Summary: Statement expression (gcc extension) cannot return
struct with variable length array
Product: gcc
Version: 9.3.0
Status: UNCONFIRMED
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=29970
--- Comment #7 from Tuna Gül ---
I guess i can post a workaround here
This code doesnt compile:
"""
int main() {
({
unsigned int len = 10;
struct {
int array[len];
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99736
--- Comment #1 from Tuna Gül ---
Sorry for wrong compiler output
This should be the compiler output
(I dont know how to edit the original description)
"""
test.c: In function ‘main’:
test.c:2:3: internal compiler error: in