This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/55993] [C++11] derived-to-base conversion fails in constant expression
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 26 Feb 2015 16:25:26 +0000
- Subject: [Bug c++/55993] [C++11] derived-to-base conversion fails in constant expression
- Auto-submitted: auto-generated
- References: <bug-55993-4 at http dot gcc dot gnu dot org/bugzilla/>
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).