|
From: | Jason Davies |
Subject: | [Tinycc-devel] "function pointer expected" error in valid ternary sequence |
Date: | Thu, 17 Mar 2005 17:32:08 +0000 |
User-agent: | Debian Thunderbird 1.0 (X11/20050116) |
Hi,The following code fails to compile with the error, "function pointer expected".
int foo() { return 0; } int bar() { return 1; } int main() { int i = (1 == 0 ? foo : bar)(); } Tested on current CVS version. It looks ANSI to me... Jason
[Prev in Thread] | Current Thread | [Next in Thread] |