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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [init/] [member1.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// Copyright (C) 2005 Free Software Foundation, Inc.
2
// Contributed by Nathan Sidwell 13 Jun 2005 
3
 
4
// Origin:   Ivan Godard 
5
// Bug 20789: ICE on invalid
6
 
7
template struct A;
8
 
9
template struct B {};
10
 
11
template struct C
12
{
13
  static const int i = A::i;  // { dg-error "incomplete" }
14
  static const int j = i;
15
  B b;
16
};
17
 
18
C c;
19
 
20
int i = C::i;
21
int j = C::j;

powered by: WebSVN 2.1.0

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