This is the mail archive of the gcc-bugs@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]

[Bug c++/63532] New: Cannot increase access of member function template.


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63532

            Bug ID: 63532
           Summary: Cannot increase access of member function template.
           Product: gcc
           Version: 4.9.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: bugs at qult dot net

The following code is rejected by GCC while it is accepted by Clang.

struct Foo {
  template <typename>
  void    meth();
};

struct Bar : private Foo {
  using Foo::meth;
};

int main()
{
  (void) &Bar::meth<int>;
}

GCC accepts a variant where Foo::meth is a plain (i.e., non-template) member
function.


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