[Bug regression/38505] New: internal compiler error: Segmentation fault
holger dot hopp at sap dot com
gcc-bugzilla@gcc.gnu.org
Fri Dec 12 15:06:00 GMT 2008
testcase produces internal compiler error (SegFault).
Error occurs with trunk rev. 142153 ... 142709.
Rev. 142038 was ok.
$ gcc-4.4 -O2 -c tst.c
tst.c: In function 'foo1':
tst.c:26: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Exit 1
/* Source: */
typedef long unsigned int size_t;
extern void *memcpy (void *__restrict __dest,
__const void *__restrict __src, size_t __n)
__attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
typedef struct
{
unsigned short a [100];
unsigned short v [20];
unsigned short b [100];
}
str_t;
extern int foo2 ( int *n );
extern unsigned short bar[];
void foo1 (void)
{
str_t h;
unsigned short * const h_ptr = (unsigned short *) &h;
unsigned short h_k[200];
int x;
memcpy( h_ptr, h_k, 100 );
memcpy( h.v, bar, 40 );
foo2 (&x);
}
--
Summary: internal compiler error: Segmentation fault
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: regression
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: holger dot hopp at sap dot com
GCC build triplet: x86_64-unknown-linux-gnu
GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38505
More information about the Gcc-bugs
mailing list