[LLVMbugs] [Bug 13493] Explicitly defaulted constructors cannot be declared constexpr

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jul 31 14:04:24 PDT 2012


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

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

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

--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> 2012-07-31 16:04:24 CDT ---
Clang is correct here. The implicit A::A() would be constexpr, so constexpr may
be specified explicitly. The implicit S::S() would not be constexpr, because it
would not initialize S::i, so constexpr may not be specified there.

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