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 c++/55993] [C++11] derived-to-base conversion fails in constant expression


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

--- Comment #12 from Jason Merrill <jason at gcc dot gnu.org> ---
(In reply to splinterofchaos from comment #11)
> I still get an error with 4.9 when using one of the less reduced cases,
> although not when using the test cases in that patch.
> 
> 
> #include <tuple>
> struct A {};
> constexpr auto t = std::get<0>( std::make_tuple( A(), A() ) );

This seems to be fixed on the trunk (GCC 5).


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