[Bug c++/60225] [4.9 Regression] [c++11] ICE initializing constexpr array
glisse at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Feb 16 17:54:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60225
Marc Glisse <glisse at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2014-02-16
Ever confirmed|0 |1
--- Comment #1 from Marc Glisse <glisse at gcc dot gnu.org> ---
Indeed, in ensure_literal_type_for_constexpr_object we check:
if (CLASS_TYPE_P (type) && !COMPLETE_TYPE_P (complete_type (type)))
before calling literal_type_p but that doesn't cover the case of an array of
incomplete element type.
(because the compiler was built with optimizations, the stack trace is missing
a second literal_type_p call (semantics.c:7369))
More information about the Gcc-bugs
mailing list