1 // Contributed by Dodji Seketeli <dodji@redhat.com>
3 // { dg-options "-std=gnu++98" }
6 template <typename T> class QForeachContainer {
10 typename T::const_iterator i;
13 template <typename T> class QList {
15 class const_iterator {
17 const_iterator(const const_iterator &o);
18 const_iterator &operator++();
25 QList<QAction*> actions() const;
27 class myDialog : public QWidget {
33 QForeachContainer<__typeof__(actions())> _container_;
34 ({++_container_.brk; ++_container_.i;});