This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: patch for duplicate_decls checked in
- To: Joern Rennecke <amylaar at cambridge dot redhat dot com>
- Subject: Re: patch for duplicate_decls checked in
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Date: Thu, 25 Jan 2001 08:12:32 +0000 (GMT)
- cc: <gcc-patches at gcc dot gnu dot org>
On Thu, 25 Jan 2001, Joern Rennecke wrote:
> Thu Jan 25 02:01:16 2001 J"orn Rennecke <amylaar@redhat.com>
>
> * c-decl.c (duplicate_decls): If different_binding_level is nonzero,
> olddecl has argument types and newdecl has none, use the argument
> types from olddecl.
While you're about this, could you fix this area in general to actually
follow what the standard (TC1 / C99 - the original C89 got this wrong)
says - that the type (within the scope of the inner declaration - see my
recent questions on comp.std.c and the responses to them) becomes the
composite type (see gcc.c-torture/compile/20001018-1.c and PR c/653 - this
testcase and PR being based on a previous discussion on comp.std.c noting
a problem in this area with gcc)?
--
Joseph S. Myers
jsm28@cam.ac.uk