This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Redeclaration of used symbols
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Jan Hubicka <hubicka at ucw dot cz>
- Cc: gcc at gcc dot gnu dot org, schwab at suse dot de, rth at redhat dot com
- Date: 07 Sep 2003 20:47:13 +0200
- Subject: Re: Redeclaration of used symbols
- Organization: Integrable Solutions
- References: <20030907135208.GC14387@kam.mff.cuni.cz>
Jan Hubicka <hubicka@ucw.cz> writes:
| Hi,
| We currently accept the following testcase:
|
| t()
| {
| }
| static int t();
The C++ front-end has a warning for this
(warn_extern_redeclared_static), you might want to look at it. (Which
makes me a bit nervous about the code duplication going on both sides
of C and C++ front-ends).
-- Gaby