[LLVMbugs] [Bug 13273] defaulted default ctors + inheritance + const local var == BOOM!

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jul 5 01:41:37 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=13273

Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |richard-llvm at metafoo.co.uk
         Resolution|                            |FIXED

--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> 2012-07-05 03:41:37 CDT ---
Thanks for the report, fixed in r159733.

We weren't marking the CXXConstructExpr for list-value-initialization as
requiring zero-initialization. This also caused us to generate wrong code for
cases like:

  S *p = new S{};

(We were failing to zero out p->t here).

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list