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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [init/] [member1.C] - Blame information for rev 315

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

Line No. Rev Author Line
1 301 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;  // { dg-error "non-constant expression" }
15
  B b;  // { dg-error "not a valid template arg" }
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.