URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
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;
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.