[Bug c/39697] New: internal compiler error
helmut dot schellong at eltekvalere dot com
gcc-bugzilla@gcc.gnu.org
Thu Apr 9 13:47:00 GMT 2009
147] uname -a
FreeBSD fbsd.lokal.biz 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Mon Aug 4 14:54:03
CEST 2008 root@fbsd.lokal.biz:/usr/src/sys/i386/compile/BSD70EV i386
148]
148] gcc -v
Using built-in specs.
Target: i386-undermydesk-freebsd
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 4.2.1 20070719 [FreeBSD]
149]
150] gcc -S -Os test3.c
test3.c: In function 'foo':
test3.c:11: internal compiler error: in get_constraint_for_component_ref, at
tree-ssa-structalias.c:2455
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
151] gcc -S test3.c
152]
test3.c:
//# include <stdio.h>
extern int printf(const char *, ...);
typedef struct { unsigned id; char s[]; } txt_t;
static txt_t t= { 1234, "abcdefghijk" };
int foo(void)
{ //line 11
int i;
printf("sizeof(t) = %u\n", sizeof(t));
printf("adresse t.id= %u\n", (unsigned)&t.id);
printf("adresse t.s = %u\n", (unsigned)t.s);
for (i=0; t.s[i]; ++i) printf("%c", t.s[i]);
printf("\n");
return 0;
}
int main(void)
{
foo();
//t.s= 138;
return 0;
}
--
Summary: internal compiler error
Product: gcc
Version: 4.2.1
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: helmut dot schellong at eltekvalere dot com
GCC build triplet: below
GCC host triplet: below
GCC target triplet: below
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39697
More information about the Gcc-bugs
mailing list