[Top][All Lists]
[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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Tinycc-devel] for loop not handling function return value dereferencing,
Timo Sirainen <=