This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/18292] Cannot use function name within function.
- From: "deepak at despammed dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Nov 2004 21:38:21 -0000
- Subject: [Bug c/18292] Cannot use function name within function.
- References: <20041103205121.18292.deepak@despammed.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From deepak at despammed dot com 2004-11-03 21:38 -------
(In reply to comment #1)
> I cannot reproduce this, can you attach the preprocessed source?
Here is the plain source:
#include <signal.h>
extern volatile sig_atomic_t pe_connection_BAD;
void
sig(int signal) {
int omask = sigsetmask(0); /* sigsetmask(foo): we just need omask. */
extern void sig(int);
switch (signal) {
case SIGINT :
break;
case SIGUSR1 :
pe_connection_BAD = 1;
}
sigblock(omask & ~sigmask(SIGINT));
signal(SIGINT, sig); /* nscli will check for it. */
signal(SIGUSR1, sig);
}
$ cc ~/test.c -c
/home/deep/test.c: In function `sig':
/home/deep/test.c:18: error: called object is not a function
/home/deep/test.c:19: error: called object is not a function
$
I have added the preprocessed code to this bug report as attachment.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18292