[LLVMbugs] [Bug 13123] clang C++11 mode allows default-initializing const qualified objects using a user-declared but not user-provided constructor

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Sep 6 13:51:21 PDT 2012


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

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 #3 from Richard Smith <richard-llvm at metafoo.co.uk> 2012-09-06 15:51:21 CDT ---
This is fixed in trunk (I've not tracked down which revision fixed it, though):

<stdin>:1:38: error: default initialization of an object of const type 'const
A' requires a user-provided default constructor
struct A { A() = default; }; A const a;
                                     ^

-- 
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