C++ PATCH for c++/69753 (DR141 broke member template lookup)
Jason Merrill
jason@redhat.com
Wed Feb 17 04:22:00 GMT 2016
On 02/16/2016 05:38 AM, Markus Trippelsdorf wrote:
> Here is another testcase that every compiler I've tested (clang, icc,
> microsoft) accepts, but is rejected by gcc-6:
>
> class A {
> public:
> template <class> void m_fn1();
> };
> A *fn1(int *);
> template <typename> class B : A {
> static int *m_fn2() { fn1(m_fn2())->m_fn1<A>(); }
> };
Fixed.
Jason
More information about the Gcc-patches
mailing list