[Bug c/18292] New: Cannot use function name within function.
deepak at despammed dot com
gcc-bugzilla@gcc.gnu.org
Wed Nov 3 20:51:00 GMT 2004
Under the said version of gcc, I cannot say something like:
void foo(int bar)
{
extern void foo(int);
/* do_something. */
/* Reinstate handler. */
signal(SIGINT, foo);
}
Output is something like:
foo.c:750: error: called object is not a function
foo.c:751: error: called object is not a function
make[1]: *** [foo.o] Error 1
--
Summary: Cannot use function name within function.
Product: gcc
Version: 3.3.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: deepak at despammed dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: Mandrake Linux 10.0 3.3.2-6mdk
GCC host triplet: i586-mandrake-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18292
More information about the Gcc-bugs
mailing list