This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/69098] [5/6 regression] Member function pointer template flagged with 'is not a function template'
- From: "ppalka at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 10 Feb 2016 17:53:48 +0000
- Subject: [Bug c++/69098] [5/6 regression] Member function pointer template flagged with 'is not a function template'
- Auto-submitted: auto-generated
- References: <bug-69098-4 at http dot gcc dot gnu dot org/bugzilla/>
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>;
^