This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/77395] [6/7 Regression] std::is_constructible is false for type constructible via implicit conversion operator affecting std::tuple


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77395

Daniel Krügler <daniel.kruegler at googlemail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |daniel.kruegler@googlemail.
                   |                            |com

--- Comment #1 from Daniel Krügler <daniel.kruegler at googlemail dot com> ---
I think a better test-case is the following one, which does not depend on tuple
at all:

//#################################
#include <type_traits>

struct derived;
struct base
{
  operator derived & () &;
  operator derived const & () const &;
  operator derived && () &&;
};

struct derived : base {};

static_assert(std::is_constructible<derived&&, base&&>::value, "");

int main()
{
}
//#################################

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]