1// { dg-do assemble } 2 3template <class X> struct A { 4 int fooo (int x); 5 int x; 6 inline int y () { return 3; } 7 inline int z () { return 5; } 8}; 9 10template <class Y> int A<Y>::fooo (int t) { return (this->*(x?&A<Y>::y : &A<Y>::z))() + t; } // { dg-bogus "" } 11 12A<int> ai; 13 14int frop () { return ai.fooo (100); } 15