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:50:11 -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:50 -------
(In reply to comment #4)
> Not a bug, you have a variable called signal which shadows the global function:
> sig(int signal) {
Agree. Is it possible to change the error message to say exactly this? For
instance, declaring a local variable under the same name as a parameter gives
this --
/home/deep/test2.c:3: warning: declaration of `bar' shadows a parameter
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |VERIFIED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18292