[Bug c/99736] New: Statement expression (gcc extension) cannot return struct with variable length array

2021-03-23 Thread tunagul29 at icloud dot com via Gcc-bugs
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

[Bug c/29970] mixing ({...}) with VLA leads to massive breakage

2021-03-23 Thread tunagul29 at icloud dot com via Gcc-bugs
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];

[Bug c/99736] Statement expression (gcc extension) cannot return struct (with variable length array) object

2021-03-23 Thread tunagul29 at icloud dot com via Gcc-bugs
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