================
Comment at: lib/Sema/SemaInit.cpp:4508
@@ -4502,2 +4507,3 @@
case InitializedEntity::EK_LambdaCapture:
+ case InitializedEntity::EK_CompoundLiteralInit:
return false;
----------------
Richard Smith wrote:
> This looks wrong -- the temporary will be destroyed, even if we're not
> binding it as part of the initialization -- though I guess this doesn't
> matter since the relevant checks will be performed by the caller anyway.
Ah, it's an access/validity check for the destructor. Okay, I'll flip this one.
http://llvm-reviews.chandlerc.com/D742
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits