Commit d0acf599 by Giovanni Bajo

re PR c++/13813 ([DR206] Incomplete member variables in a template.)

	DR206
	PR c++/13813
	* g++.dg/template/member4.C: New test.

From-SVN: r76971
parent a9f46cbb
2004-01-30 Giovanni Bajo <giovannibajo@gcc.gnu.org> 2004-01-30 Giovanni Bajo <giovannibajo@gcc.gnu.org>
DR206
PR c++/13813
* g++.dg/template/member4.C: New test.
2004-01-30 Giovanni Bajo <giovannibajo@gcc.gnu.org>
PR c++/13683 PR c++/13683
* g++.dg/template/sizeof6.C: New test. * g++.dg/template/sizeof6.C: New test.
......
// { dg-do compile }
// Contributed by Matty T. <mattyt-bugzilla at tpg dot com dot au>
// PR c++/13813 [DR206]: Check semantic constraints of members of
// non-dependent type at instantiation time.
// DR206 explains that this is ill-formed, no diagnostic required. We emit
// a diagnostic instead.
class E;
template < class A > class Z {
A a;
E e; // { dg-error "incomplete type" }
};
// Nested classes are always dependent names.
template < class A > class Y {
class F;
F e; // { dg-bogus "" "nested classes are always dependent, see DR108 and DR224" }
};
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