URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 305 |
Rev 338 |
// { dg-do assemble }
|
// { dg-do assemble }
|
|
|
// by Alexandre Oliva
|
// by Alexandre Oliva
|
|
|
// According to [temp.expl.spec]/2, a template explicit specialization
|
// According to [temp.expl.spec]/2, a template explicit specialization
|
// must be declared in the namespace that contains the declaration of
|
// must be declared in the namespace that contains the declaration of
|
// the template
|
// the template
|
|
|
namespace N {
|
namespace N {
|
template class foo; // { dg-error "" } referenced below
|
template class foo; // { dg-error "" } referenced below
|
}
|
}
|
|
|
using namespace N;
|
using namespace N;
|
|
|
template <> class foo; // { dg-error "" } invalid specialization
|
template <> class foo; // { dg-error "" } invalid specialization
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.