1 2 3 4 5 6 7 8 9 10 11 12
// { dg-options "-O2" } class QWidget { public: void repaint( bool erase = 1 ); }; void f (void) { typedef void (QWidget::*A)(bool); A b = &QWidget::repaint; }