This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/78441] New: [variant] variant_alternative doesn't allow cv qualifiers
- From: "eric at efcs dot ca" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 21 Nov 2016 03:51:51 +0000
- Subject: [Bug libstdc++/78441] New: [variant] variant_alternative doesn't allow cv qualifiers
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78441
Bug ID: 78441
Summary: [variant] variant_alternative doesn't allow cv
qualifiers
Product: gcc
Version: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: eric at efcs dot ca
Target Milestone: ---
The below reproducer fails to compile.
// Reproducer
#include <variant>
using V = std::variant<int>;
using T = std::variant_alternative_t<0, const V>;
static_assert(std::is_same_v<T, const int>, "");