InitListExpr.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185304
91177308-0d34-0410-b5e6-
96231b3b80d8
for (RecordDecl::field_iterator I = RD->field_begin(),
E = RD->field_end();
I != E; ++I) {
+ if (Index >= ILE->getNumInits())
+ break;
if (I->isUnnamedBitfield())
continue;
Expr *SubInit = ILE->getInit(Index);
struct PR6139b { A (&x)[1]; };
PR6139b y = {A()}; // expected-error{{non-const lvalue reference to type 'A [1]' cannot bind to a temporary of type 'A'}}
+
+namespace PR16502 {
+ struct A { int &&temporary; int x, y; };
+ int f();
+ const A &c = { 10, ++c.temporary };
+}