URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 384 |
// { dg-do compile }
|
// { dg-do compile }
|
// { dg-options "-g" }
|
// { dg-options "-g" }
|
// Origin:
|
// Origin:
|
// PR c++/19508: avoid attributes for template parameters
|
// PR c++/19508: avoid attributes for template parameters
|
|
|
template
|
template
|
struct BVector
|
struct BVector
|
{
|
{
|
typedef T T2;
|
typedef T T2;
|
typedef T value_type __attribute__ ((aligned(8))); // { dg-bogus "attribute" "attribute" }
|
typedef T value_type __attribute__ ((aligned(8))); // { dg-bogus "attribute" "attribute" }
|
typedef T2 value_type2 __attribute__ ((aligned(8))); // { dg-bogus "attribute" "attribute" }
|
typedef T2 value_type2 __attribute__ ((aligned(8))); // { dg-bogus "attribute" "attribute" }
|
value_type v;
|
value_type v;
|
};
|
};
|
BVector m;
|
BVector m;
|
|
|
template class T>
|
template class T>
|
struct BV2
|
struct BV2
|
{
|
{
|
typedef T value_type __attribute__((aligned(8))); // { dg-bogus "attribute" "attribute" }
|
typedef T value_type __attribute__((aligned(8))); // { dg-bogus "attribute" "attribute" }
|
value_type v;
|
value_type v;
|
};
|
};
|
BV2 m2;
|
BV2 m2;
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.