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 }
|
// Origin: Markus Breuer
|
// Origin: Markus Breuer
|
|
|
// PR c++/6944
|
// PR c++/6944
|
// Fail to synthesize copy constructor of multi-dimensional
|
// Fail to synthesize copy constructor of multi-dimensional
|
// array of class.
|
// array of class.
|
|
|
#include
|
#include
|
|
|
class Array
|
class Array
|
{
|
{
|
public:
|
public:
|
std::string m_array[10][20][30];
|
std::string m_array[10][20][30];
|
};
|
};
|
|
|
Array func()
|
Array func()
|
{
|
{
|
Array result;
|
Array result;
|
return result; // sorry, not implemented: cannot initialize multi-dimensional array with initializer
|
return result; // sorry, not implemented: cannot initialize multi-dimensional array with initializer
|
}
|
}
|
|
|
|
|
int main()
|
int main()
|
{
|
{
|
Array arr = func();
|
Array arr = func();
|
}
|
}
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.