URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
// Copyright (C) 2004 Free Software Foundation
|
// Copyright (C) 2004 Free Software Foundation
|
// Contributed by Kriang Lerdsuwanakij
|
// Contributed by Kriang Lerdsuwanakij
|
// { dg-do compile }
|
// { dg-do compile }
|
|
|
// Check the type of non-type parameter in template template parameter
|
// Check the type of non-type parameter in template template parameter
|
// only if it is dependent.
|
// only if it is dependent.
|
|
|
template class T>
|
template class T>
|
struct X {};
|
struct X {};
|
|
|
template class T>
|
template class T>
|
struct Y {
|
struct Y {
|
X x;
|
X x;
|
};
|
};
|
|
|
template struct Z {};
|
template struct Z {};
|
|
|
Y y1;
|
Y y1;
|
Y y2; // { dg-error "mismatch|expected|invalid" }
|
Y y2; // { dg-error "mismatch|expected|invalid" }
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.