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:
parent
742ed2f3da
commit
85d2b0b49a
|
@ -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>
|
2003-06-07 Richard Henderson <rth@redhat.com>
|
||||||
|
|
||||||
* g++.dg/other/offsetof3.C: Use size_t.
|
* g++.dg/other/offsetof3.C: Use size_t.
|
||||||
|
|
|
@ -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;
|
||||||
|
};
|
|
@ -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);
|
||||||
|
};
|
Loading…
Reference in New Issue