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 |
// { dg-do compile }
|
// { dg-do compile }
|
|
|
// Copyright (C) 2003 Free Software Foundation, Inc.
|
// Copyright (C) 2003 Free Software Foundation, Inc.
|
// Contributed by Nathan Sidwell 21 Mar 2003
|
// Contributed by Nathan Sidwell 21 Mar 2003
|
|
|
// PR 9708. We accepted a local class
|
// PR 9708. We accepted a local class
|
|
|
template class X {};
|
template class X {};
|
|
|
void fn ()
|
void fn ()
|
{
|
{
|
class L {};
|
class L {};
|
X f; // { dg-error "uses local type|trying to instantiate|no type|invalid type" "" }
|
X f; // { dg-error "uses local type|trying to instantiate|no type|invalid type" "" }
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.