tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] core dump with flex arrays


From: Herman ten Brugge
Subject: [Tinycc-devel] core dump with flex arrays
Date: Mon, 15 Feb 2021 19:35:21 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0

I ran the tests/gcctestsuite.sh script and found one test that dumps core.
($GCC_DIR/gcc/testsuite/gcc.c-torture/compile/pr28865.c)

The reduced testcase is:

struct A { int a; char b[]; };
struct A a = { 1, "1" };
struct B { struct A a; };
struct B b = { { 1, "1" } };

line 2 works and line 4 dumps core.

I am not sure how to fix this.

    Herman





reply via email to

[Prev in Thread] Current Thread [Next in Thread]