|
Lines 6316-6322
Link Here
|
| 6316 |
QualType T = DestType->getAs<ReferenceType>()->getPointeeType(); |
6316 |
QualType T = DestType->getAs<ReferenceType>()->getPointeeType(); |
| 6317 |
diagnoseListInit(S, InitializedEntity::InitializeTemporary(T), InitList); |
6317 |
diagnoseListInit(S, InitializedEntity::InitializeTemporary(T), InitList); |
| 6318 |
SourceLocation Loc = InitList->getLocStart(); |
6318 |
SourceLocation Loc = InitList->getLocStart(); |
| 6319 |
if (auto *D = Entity.getDecl()) |
6319 |
if (Decl *D = Entity.getDecl()) |
| 6320 |
Loc = D->getLocation(); |
6320 |
Loc = D->getLocation(); |
| 6321 |
S.Diag(Loc, diag::note_in_reference_temporary_list_initializer) << T; |
6321 |
S.Diag(Loc, diag::note_in_reference_temporary_list_initializer) << T; |
| 6322 |
return; |
6322 |
return; |