[Bug c++/55993] [C++11] derived-to-base conversion fails in constant expression

2015-02-26 Thread jason at gcc dot gnu.org
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.

[Bug c++/55993] [C++11] derived-to-base conversion fails in constant expression

2015-02-26 Thread splinterofchaos at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55993 splinterofchaos at gmail dot com changed: What|Removed |Added CC||splinterofchaos at

[Bug c++/55993] [C++11] derived-to-base conversion fails in constant expression

2013-02-15 Thread jason at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55993 Jason Merrill jason at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED

[Bug c++/55993] [C++11] derived-to-base conversion fails in constant expression

2013-02-13 Thread jason at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55993 --- Comment #9 from Jason Merrill jason at gcc dot gnu.org 2013-02-13 17:56:33 UTC --- Author: jason Date: Wed Feb 13 17:56:28 2013 New Revision: 196023 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=196023 Log: PR c++/55993

[Bug c++/55993] [C++11] derived-to-base conversion fails in constant expression

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

[Bug c++/55993] [C++11] derived-to-base conversion fails in constant expression

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

[Bug c++/55993] [C++11] derived-to-base conversion fails in constant expression

2013-01-15 Thread jnapoli at alum dot mit.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55993 --- Comment #6 from Joshua Napoli jnapoli at alum dot mit.edu 2013-01-15 19:26:49 UTC --- Awesome reduction of the bug!

[Bug c++/55993] [C++11] derived-to-base conversion fails in constant expression

2013-01-15 Thread glisse at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55993 --- Comment #7 from Marc Glisse glisse at gcc dot gnu.org 2013-01-15 19:34:17 UTC --- struct A {}; struct B:A {}; struct C:A {}; struct D:B,C {}; constexpr D d; constexpr const C e=d; // OK constexpr auto f=static_castconst C(d); //

[Bug c++/55993] [C++11] derived-to-base conversion fails in constant expression

2013-01-15 Thread glisse at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55993 --- Comment #8 from Marc Glisse glisse at gcc dot gnu.org 2013-01-15 19:38:46 UTC --- (In reply to comment #7) e.cc:9:41: error: the value of 'd' is not usable in a constant expression constexpr auto g=static_castconst B(d); // FAIL