| 1 |
// PR c++/93790 - wrong paren-init of aggregates interference. |
| 2 |
// { dg-do compile } |
| 3 |
|
| 4 |
struct S {}; |
| 5 |
class S_refwrap { |
| 6 |
S& Sref_; |
| 7 |
public: |
| 8 |
S_refwrap(S& Sref) : Sref_(Sref) {} |
| 9 |
operator S&() { return Sref_; } |
| 10 |
}; |
| 11 |
|
| 12 |
S s; |
| 13 |
S_refwrap r(s); |
| 14 |
S& s2(r); |