public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/51889] New: [4.7 regression] can't override a using-declaration in a template
@ 2012-01-18  5:43 jason at gcc dot gnu.org
  2012-01-18 10:17 ` [Bug c++/51889] " rguenth at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: jason at gcc dot gnu.org @ 2012-01-18  5:43 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51889

             Bug #: 51889
           Summary: [4.7 regression] can't override a using-declaration in
                    a template
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: jason@gcc.gnu.org
                CC: fabien@gcc.gnu.org, jakub@redhat.com


7.3.3/15: 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).

This isn't working properly in templates currently:

struct A {
  void f();
};

template <class T>
struct B: A
{
  using A::f;
  void f();
};


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-01-19 15:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-18  5:43 [Bug c++/51889] New: [4.7 regression] can't override a using-declaration in a template jason at gcc dot gnu.org
2012-01-18 10:17 ` [Bug c++/51889] " rguenth at gcc dot gnu.org
2012-01-19  5:33 ` jason at gcc dot gnu.org
2012-01-19 13:04 ` rguenth at gcc dot gnu.org
2012-01-19 15:04 ` jason at gcc dot gnu.org
2012-01-19 15:12 ` jason at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).