[cfe-commits] [PATCH] Fixing constant default initialization with explicitly defaulted constructors

Richard Smith richard at metafoo.co.uk
Tue Jul 31 15:32:02 PDT 2012


LGTM, thanks!

On Tue, Jul 31, 2012 at 3:25 PM, Aaron Ballman <aaron at aaronballman.com>wrote:

> This patch addresses PR13492 and PR13216, where explicitly defaulted
> constructors were allowed during default initialization of a constant.
>  For instance:
>
>   struct B {
>     B() = default;
>   };
>
>   void f() {
>     const B b;  // Should error
>   }
>
> It did catch some problems with previous test cases that I've also
> corrected.
>
> ~Aaron
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120731/142514a0/attachment.html>


More information about the cfe-commits mailing list