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 4 Sep 2003
|
// Contributed by Nathan Sidwell 4 Sep 2003
|
// Origin Volker Reichelt reichelt@igpm.rwth-aachen.de
|
// Origin Volker Reichelt reichelt@igpm.rwth-aachen.de
|
|
|
// PR 11922
|
// PR 11922
|
|
|
struct A
|
struct A
|
{
|
{
|
template struct B;
|
template struct B;
|
struct C;
|
struct C;
|
};
|
};
|
|
|
template <> struct A::B {};
|
template <> struct A::B {};
|
|
|
template void foo()
|
template void foo()
|
{
|
{
|
T::C (); // { dg-error "parsed as a non-type|if a type is meant" "" }
|
T::C (); // { dg-error "parsed as a non-type|if a type is meant" "" }
|
T::template B(); // { dg-error "parsed as a non-type|if a type is meant" "" }
|
T::template B(); // { dg-error "parsed as a non-type|if a type is meant" "" }
|
}
|
}
|
|
|
void bar()
|
void bar()
|
{
|
{
|
foo(); // { dg-error "instantiated" "" }
|
foo(); // { dg-error "instantiated" "" }
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.