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]
Other format: [Raw text]

Re: [C++, RFA, 3.4reg] correctly detect conflicts between function and using decls


On Feb 23, 2005, Alexandre Oliva <aoliva@redhat.com> wrote:

> On Feb 22, 2005, Alexandre Oliva <aoliva@redhat.com> wrote:
>> A bug report was filed into Red Hat's bugzilla system (URL in the
>> testcase below) regarding an inconsistency in detecting and reporting
>> conflicts between function and using declarations.  We'd reject extern
>> "C" matching declarations should the function declaration appear after
>> the using declaration, but would accept them in reverse order.

>> Here's the patch, containing a testcase that covers all possibilities
>> I could think of.  Ok to install?

> Here's a back-port of the patch for the 3.4 branch.  Jakub tells me
> this is a 3.4 regression introduced after 2004-12-12.

> Ok for mainline and 3.4?  Testing trivial backport to 3.4 on
> x86_64-linux-gnu now.  Regtesting in mainline succeeded.

> Index: gcc/cp/ChangeLog
> from  Alexandre Oliva  <aoliva@redhat.com>

> 	* name-lookup.c (push_overloaded_decl): Don't error if the new
> 	decl matches the old one.
> 	* decl.c (redeclaration_error_message): Likewise.

Ping?  Ok for 4.0 branch as well?

http://gcc.gnu.org/ml/gcc-patches/2005-02/msg01452.html

-- 
Alexandre Oliva             http://www.ic.unicamp.br/~oliva/
Red Hat Compiler Engineer   aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist  oliva@{lsd.ic.unicamp.br, gnu.org}


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