This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/53236] New: using declaration and base function template overloading
- From: "fpelliccioni at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 04 May 2012 18:59:14 +0000
- Subject: [Bug c++/53236] New: using declaration and base function template overloading
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53236
Bug #: 53236
Summary: using declaration and base function template
overloading
Classification: Unclassified
Product: gcc
Version: 4.7.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: fpelliccioni@gmail.com
Created attachment 27309
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27309
source code
The code in the attached source file must be rejected according to the
[namespace.udecl] paragraph 15 (n3290)
When a using-declaration brings names from a base class into a derived class
scope, member functions and
member function templates in the derived class override and/or hide member
functions and member function
templates with the same name, parameter-type-list (8.3.5), cv-qualification,
and ref-qualifier (if any) in a
base class (rather than conflicting).
Tested with:
g++ 4.6.3 - Linux 3.2.0-24 x86
g++ 4.7.1 - Windows7 IA-64
Regards,
Fernando Pelliccioni.
fpelliccioni@gmail.com