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: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs