This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/49264] [4.6/4.7 Regression] Internal compiler error: segmentation fault
- 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: Fri, 3 Jun 2011 06:51:26 +0000
- Subject: [Bug c++/49264] [4.6/4.7 Regression] Internal compiler error: segmentation fault
- Auto-submitted: auto-generated
- References: <bug-49264-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49264
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-06-03 06:50:50 UTC ---
Reduced testcase:
// PR c++/49264
// { dg-do compile }
// { dg-options "-O2" }
struct B { };
struct A { char a[sizeof (B) + 1]; } a;
static inline void
foo (const B &b)
{
__builtin_memcpy (&a, &b, sizeof (b));
}
void
bar ()
{
B c;
foo (c);
}