[PATCH] D19851: Warn on binding reference to null in copy initialization

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Wed May 4 12:11:58 PDT 2016


aaron.ballman accepted this revision.
aaron.ballman added a comment.
This revision is now accepted and ready to land.

This generally LGTM, but you should wait for @rsmith to sign off before committing.


================
Comment at: test/CXX/expr/expr.prim/expr.prim.lambda/p5.cpp:39
@@ -38,3 +38,3 @@
 
-  bogus_override_if_virtual<decltype(l)> bogus;
+  bogus_override_if_virtual<decltype(l)> bogus; // expected-note{{in instantiation of member function 'bogus_override_if_virtual<(lambda}}
 }
----------------
Yeah, totally not worth it then. Thank you for the explanation.


http://reviews.llvm.org/D19851





More information about the cfe-commits mailing list