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++/69098] [5/6 regression] Member function pointer template flagged with 'is not a function template'


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

--- Comment #11 from Patrick Palka <ppalka at gcc dot gnu.org> ---
There is another bug lurking here, though.  The following test case fails to
compile, even with my proposed patch:

struct A
{
  template <int>
  static void *pf;
};

template <typename B>
bool foo () {
  return B::template pf<false>;
}

bool bar () {
  return foo<A>();
}


69098.C: In instantiation of âbool foo() [with B = A]â:
69098.C:16:17:   required from here
69098.C:12:10: error: âA::pf<0>â is not a template [-fpermissive]
   return B::template pf<false>;
          ^

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