3 // Origin: Matt Austern <austern@apple.com>
5 // PR c++/7983: ICE typedef to typename as friend.
7 template<class T> class smart_ptr2 {
10 typedef typename T::subT td; // { dg-error "previous declaration" }
11 friend class td; // { dg-error "typedef|not name a class" }