Skip to content

std::tuple<> is not trivially constructible #41059

@llvmbot

Description

@llvmbot
Bugzilla Link 41714
Resolution FIXED
Resolved on Jun 11, 2019 08:06
Version unspecified
OS Linux
Reporter LLVM Bugzilla Contributor
CC @ldionne,@mclow
Fixed by commit(s) r363075

Extended Description

Clang -std=c++17 compiles the following if using libstdc++:

#include
static_assert(std::is_trivially_constructible_v<std::tuple<>>);

But adding -stdlib=libc++ causes

test.cc:3:1: error: static_assert failed due to requirement 'std::is_trivially_constructible_v<std::__1::tuple<>>

Metadata

Metadata

Assignees

Labels

bugzillaIssues migrated from bugzillalibc++libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions