Commit 53be1a8d by Kriang Lerdsuwanakij Committed by Kriang Lerdsuwanakij

re PR c++/7982 (core dump due to recursive definition (using stl set))

	PR c++/7982
	* g++.dg/warn/implicit-typename1.C: New test.

From-SVN: r63318
parent 9e555526
2003-02-23 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
PR c++/7982
* g++.dg/warn/implicit-typename1.C: New test.
2003-02-22 Kelley Cook <kelleycook@comcast.net>
* g++.old-deja/g++.other/store-expr1.C: Replace "mcpu"
......
// The -pedantic option must be omitted to trigger the crash.
// { dg-do compile }
// { dg-options "" }
// PR c++/7982: Crash warning about implicit typename.
// The base class refers to another typename, while the
// name lookup finds a template.
template <typename T> struct X {};
template <typename T> struct C {
typedef typename T::X X;
};
template <typename T> struct A : public C<T> {
typedef X<int> X; // { dg-warning "lookup|dependent base|typename" }
};
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