URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 305 |
Rev 384 |
// { dg-do assemble }
|
// { dg-do assemble }
|
//reported by Theodore Papadopoulo (Theodore.Papadopoulo@sophia.inria.fr)
|
//reported by Theodore Papadopoulo (Theodore.Papadopoulo@sophia.inria.fr)
|
|
|
namespace A {
|
namespace A {
|
|
|
namespace B {
|
namespace B {
|
|
|
template
|
template
|
struct B {
|
struct B {
|
static const unsigned count = 0;
|
static const unsigned count = 0;
|
template
|
template
|
void SetError(ForwardIter it,const T1& p1,const T2& p2) const { }
|
void SetError(ForwardIter it,const T1& p1,const T2& p2) const { }
|
};
|
};
|
|
|
template <>
|
template <>
|
const unsigned B::count = 2; // { dg-error "" } duplicate init
|
const unsigned B::count = 2; // { dg-error "" } duplicate init
|
}
|
}
|
}
|
}
|
|
|
int
|
int
|
main()
|
main()
|
{
|
{
|
unsigned kk = A::B::count; // { dg-error "" } not a template: syntax error
|
unsigned kk = A::B::count; // { dg-error "" } not a template: syntax error
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.