tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] multi dimensional arrays on stack do not work any mor


From: Herman ten Brugge
Subject: Re: [Tinycc-devel] multi dimensional arrays on stack do not work any more
Date: Fri, 18 Mar 2022 08:12:18 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0

On 3/17/22 19:00, Herman ten Brugge wrote:
After commit: "tccgen: accept array-size expressions in function paramters"

The code:

void test (int arr[2][2][2])
{
  arr[1][1][1] = 3;
}

Does not work any more.

When I revert the commit the code works as expected.

I think I fixed this one.
There is still some work to do. See tests/tcctest.c (c99_vla_test_3c, c99_vla_test_3d)

    Herman




reply via email to

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