public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/63532] New: Cannot increase access of member function template.
@ 2014-10-14  9:45 bugs at qult dot net
  2014-10-14 10:52 ` [Bug c++/63532] " redi at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: bugs at qult dot net @ 2014-10-14  9:45 UTC (permalink / raw)
  To: gcc-bugs

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.


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

end of thread, other threads:[~2022-02-10 22:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-14  9:45 [Bug c++/63532] New: Cannot increase access of member function template bugs at qult dot net
2014-10-14 10:52 ` [Bug c++/63532] " redi at gcc dot gnu.org
2021-12-11  8:56 ` pinskia at gcc dot gnu.org
2022-02-10 22:03 ` pinskia 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).