[LLVMbugs] [Bug 11295] New: An explicitly defaulted constructor makes the class non-trivial
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Nov 2 06:09:50 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=11295
Bug #: 11295
Summary: An explicitly defaulted constructor makes the class
non-trivial
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++0x
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: max at duempel.org
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
The following example should render a trivial type, because the constructor is
explicitly defaulted, which should be equal to the constructor not being
mentioned at all:
struct Foo { Foo() = default; };
#include <type_traits>
static_assert(std::is_trivial<Foo>::value, "Foo");
Renders:
test.cxx:3:1: error: static_assert failed "Foo"
static_assert(std::is_trivial<Foo>::value, "Foo");
--
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