| 1 |
// PR c++/12726 |
| 2 |
// Origin: Vladimir Zidar <[email protected]> |
| 3 |
// Reduced version: Volker Reichelt <[email protected]> |
| 4 |
// { dg-options "" } |
| 5 |
|
| 6 |
struct A |
| 7 |
{ |
| 8 |
A(); |
| 9 |
A(const A&); |
| 10 |
A(int); |
| 11 |
}; |
| 12 |
|
| 13 |
struct B |
| 14 |
{ |
| 15 |
A a; |
| 16 |
}; |
| 17 |
|
| 18 |
void foo() |
| 19 |
{ |
| 20 |
B b; |
| 21 |
b = (B){0}; |
| 22 |
} |