Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/init/aggr14.C @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
145:1830386684a0 | 152:2b5abeee2509 |
---|---|
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); |