tinycc-devel
[Top][All Lists]
Advanced

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

[Tinycc-devel] for loop not handling function return value dereferencing


From: Timo Sirainen
Subject: [Tinycc-devel] for loop not handling function return value dereferencing
Date: Mon, 13 Sep 2010 12:47:30 +0100

I noticed it with code:

for (errno = 0;;) {}

But since errno is a macro, it's clearer as:

int *foo(void) {return 0;}
int main(void)
{
        for (*foo() = 1;;) ;
}

This fails with:

test.c:4: error: identifier expected





reply via email to

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