OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [member4.C] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
// Contributed by Matty T. 
3
// PR c++/13813 [DR206]: Check semantic constraints of members of
4
//   non-dependent type at instantiation time.
5
 
6
 
7
// DR206 explains that this is ill-formed, no diagnostic required. We emit
8
//  a diagnostic instead.
9
class E;
10
template < class A > class Z {
11
  A a;
12
  E e;   // { dg-error "incomplete type" }
13
};
14
 
15
 
16
// Nested classes are always dependent names.
17
template < class A > class Y {
18
  class F;
19
  F e;   // { dg-bogus "" "nested classes are always dependent, see DR108 and DR224" }
20
};

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.