Package: tcc
Version: 0.9.24~cvs20070502-1
Tags: upstream

Hello,

I can compile the following code with gcc without problem:

$ gcc -Wall -Werror -ansi -pedantic -std=c99 -c test.c

But tcc seems unable to compile it:

$ tcc -c test.c
test.c:3: constant expression expected
zsh: exit 1     tcc -c test.c


Here is the code:

int foo(int bar) {

        int a[bar];
        while(bar--) a[bar] = 1;

        return 0;
}


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to