[Bug libstdc++/55993] tuple_cat not a constant expression for result size >= 3

2013-01-15 Thread jnapoli at alum dot mit.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55993 --- Comment #3 from Joshua Napoli 2013-01-15 18:44:10 UTC --- The problem has to do with a completely empty struct being used twice consecutively in the tuple type list. std::tuple inherits from A (by inheriting _Head_base which inherits A

[Bug libstdc++/55993] tuple_cat not a constant expression for result size >= 3

2013-01-15 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55993 --- Comment #2 from Jonathan Wakely 2013-01-15 17:28:42 UTC --- #include struct A {}; constexpr auto t = std::make_tuple( A(), A() ); constexpr auto a = std::get<0>( t ); t.cc:4:35: error: accessing value of 't' through a 'const A' gl

[Bug libstdc++/55993] tuple_cat not a constant expression for result size >= 3

2013-01-15 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55993 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|