tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] tcc and declaring arrays.


From: Kenneth Forsbäck
Subject: Re: [Tinycc-devel] tcc and declaring arrays.
Date: Tue, 16 Jun 2009 23:19:29 +0300
User-agent: Thunderbird 2.0.0.21 (Windows/20090302)

As far as I know, TCC doesn't support variable length arrays, yet. So the argument for creating an array must be a constant.

Kenneth

Ammar James wrote:
Another area where gcc compiles fine while tcc issues an error.

Essentially:
int i;
i = strlen(s);
int s2[i];      //tcc doesn't like this.

tcc's error message is: wrong3.c:9: constant expression expected

Code attached (21 lines).


------------------------------------------------------------------------

_______________________________________________
Tinycc-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/tinycc-devel




reply via email to

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