URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
// PR c++/6179
|
// PR c++/6179
|
|
|
// Bug: we tried to look at the fields of 'const A' to determine the proper
|
// Bug: we tried to look at the fields of 'const A' to determine the proper
|
// exception specification for the synthesized copy constructor, but
|
// exception specification for the synthesized copy constructor, but
|
// TYPE_FIELDS hadn't been set yet, so we incorrectly got a throw() spec.
|
// TYPE_FIELDS hadn't been set yet, so we incorrectly got a throw() spec.
|
|
|
struct B
|
struct B
|
{
|
{
|
B () {}
|
B () {}
|
B (const B&) { throw 1; }
|
B (const B&) { throw 1; }
|
};
|
};
|
|
|
struct A;
|
struct A;
|
void f (const A &) {}
|
void f (const A &) {}
|
struct A
|
struct A
|
{
|
{
|
B b;
|
B b;
|
};
|
};
|
|
|
int main ()
|
int main ()
|
{
|
{
|
A a;
|
A a;
|
try
|
try
|
{ A a2 (a); }
|
{ A a2 (a); }
|
catch (...)
|
catch (...)
|
{ }
|
{ }
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.