This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: patch for duplicate_decls checked in


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]