1 2 3 4 5 6 7 8 9 10 11 12
// { dg-do assemble } template<class T> struct A { typedef T* iterator; // { dg-error "" } pointer to reference public: A(){} }; void f() { A<int&> a; }