This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/48165] [4.6/4.7 Regression] gcc-4.6: internal compiler error: in build2_stat
- 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: Thu, 17 Mar 2011 13:02:29 +0000
- Subject: [Bug tree-optimization/48165] [4.6/4.7 Regression] gcc-4.6: internal compiler error: in build2_stat
- Auto-submitted: auto-generated
- References: <bug-48165-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48165
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-03-17 13:02:25 UTC ---
Started failing with http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=161655
Simplified testcase (only fails with cc1plus, not cc1):
typedef char A[20];
typedef A B[5];
struct C { B b; };
void
foo (void *x)
{
char a[4 + sizeof (C)];
C *c = (C *) (a + 4);
for (int i = 0; i < 5; i++)
__builtin___memcpy_chk (c->b[i], x, 20,
__builtin_object_size (c->b[i], 0));
}