URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 338 |
// PR c++/33965
|
// PR c++/33965
|
// { dg-options -std=c++0x }
|
// { dg-options -std=c++0x }
|
template
|
template
|
struct foo
|
struct foo
|
{
|
{
|
static bool const value = false;
|
static bool const value = false;
|
};
|
};
|
|
|
template class T, typename... Args>
|
template class T, typename... Args>
|
struct foo >
|
struct foo >
|
{
|
{
|
static bool const value = true;
|
static bool const value = true;
|
};
|
};
|
|
|
template
|
template
|
struct int_
|
struct int_
|
{};
|
{};
|
|
|
int main()
|
int main()
|
{
|
{
|
static_assert(foo >::value == false,
|
static_assert(foo >::value == false,
|
"picked up partial specialization, but should not have");
|
"picked up partial specialization, but should not have");
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.