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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [init/] [member1.C] - Diff between revs 149 and 154

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 149 Rev 154
// Copyright (C) 2005 Free Software Foundation, Inc.
// Copyright (C) 2005 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 13 Jun 2005 
// Contributed by Nathan Sidwell 13 Jun 2005 
// Origin:   Ivan Godard 
// Origin:   Ivan Godard 
// Bug 20789: ICE on invalid
// Bug 20789: ICE on invalid
template struct A;
template struct A;
template struct B {};
template struct B {};
template struct C
template struct C
{
{
  static const int i = A::i;  // { dg-error "incomplete" }
  static const int i = A::i;  // { dg-error "incomplete" }
  static const int j = i;  // { dg-error "non-constant expression" }
  static const int j = i;  // { dg-error "non-constant expression" }
  B b;  // { dg-error "not a valid template arg" }
  B b;  // { dg-error "not a valid template arg" }
};
};
C c;
C c;
int i = C::i;
int i = C::i;
int j = C::j;
int j = C::j;
 
 

powered by: WebSVN 2.1.0

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