Commit d6f7c704 by Kriang Lerdsuwanakij Committed by Kriang Lerdsuwanakij

re PR c++/7983 (ICE for friend declaration using typedef in class template)

	PR c++/7983
	* g++.dg/parse/typedef4.C: New test.

From-SVN: r70051
parent b00badcd
2003-08-01 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
PR c++/7983
* g++.dg/parse/typedef4.C: New test.
2003-08-01 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
PR c++/8442, c++/8806
* g++.dg/template/elab1.C: New test.
* g++.dg/template/type2.C: Likewise.
......
// { dg-do compile }
// Origin: Matt Austern <austern@apple.com>
// PR c++/7983: ICE typedef to typename as friend.
template<class T> class smart_ptr2 {
T* real_ptr;
public:
typedef typename T::subT td;
friend class td; // { dg-error "typename|not name a class" }
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment