This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/51365] New: cannot use final empty class in std::tuple
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 30 Nov 2011 19:01:13 +0000
- Subject: [Bug libstdc++/51365] New: cannot use final empty class in std::tuple
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51365
Bug #: 51365
Summary: cannot use final empty class in std::tuple
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Keywords: rejects-valid
Severity: normal
Priority: P3
Component: libstdc++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: redi@gcc.gnu.org
#include <tuple>
struct F final { };
std::tuple<F> t;
This should work. I don't know how to make it work without a compiler-assisted
is_final trait.