re PR c++/11039 (Bad interaction between implicit typename deprecation and friendship)

PR c++/11039
	* g++.dg/warn/implicit-typename2.C: New test.
	* g++.dg/warn/implicit-typename3.C: New test.

From-SVN: r67620
This commit is contained in:
Kriang Lerdsuwanakij 2003-06-08 11:08:00 +00:00 committed by Kriang Lerdsuwanakij
parent 742ed2f3da
commit 85d2b0b49a
3 changed files with 30 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2003-06-08 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
PR c++/11039
* g++.dg/warn/implicit-typename2.C: New test.
* g++.dg/warn/implicit-typename3.C: New test.
2003-06-07 Richard Henderson <rth@redhat.com>
* g++.dg/other/offsetof3.C: Use size_t.

View File

@ -0,0 +1,12 @@
// { dg-do compile }
// Origin: Wolfgang Bangerth <bangerth@ticam.utexas.edu>
// PR c++/11039: Implicit typename warning in friend class declaration.
template <typename T> struct X {
struct Y {
struct Z {};
};
friend struct Y::Z;
};

View File

@ -0,0 +1,12 @@
// { dg-do compile }
// Origin: Wolfgang Bangerth <bangerth@ticam.utexas.edu>
// PR c++/11039: Implicit typename warning in friend class declaration.
template <typename T> struct X {
struct Y {
struct Z {};
};
template <typename U> friend struct Y::Z f(U);
};