This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/58207] [4.8/4.9 Regression] ICE in sort_constexpr_mem_initializers due to out of bounds vector access
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 09 Sep 2013 12:31:28 +0000
- Subject: [Bug c++/58207] [4.8/4.9 Regression] ICE in sort_constexpr_mem_initializers due to out of bounds vector access
- Auto-submitted: auto-generated
- References: <bug-58207-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58207
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |error-recovery
CC| |jason at gcc dot gnu.org
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r195986.
Another testcase that ICEs:
struct C
{
virtual bool foo ();
};
struct D : public C
{
constexpr D () : C (6) {}
};
Changing sort_constexpr_mem_initializers to stop searching at the end of vector
and in that case just assert errorcount > 0 and return v unmodified fixes those
ICEs, though it is kind of ugly.