public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "sylvain at gplservice dot fr" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c/13732] New: internal compiler error with structures Date: Sun, 18 Jan 2004 20:51:00 -0000 [thread overview] Message-ID: <20040118205152.13732.sylvain@gplservice.fr> (raw) I'v got an internal compiler error when compiling this : // test.c #include <stdlib.h> void algo_fourmis(int nombre_points) { typedef struct { short memoire[nombre_points+1]; char bann_list[nombre_points+1]; } fourmi; fourmi *creation_fourmi(int nombre_points) { int i; fourmi *f; f = ( fourmi *) malloc(sizeof(fourmi)); for (i=0;i<=nombre_points;i++) f->bann_list[i]=0; return f; } } // end I don't realy know if this is valid c code but I have no problems compiling it with gcc 2.95 but with all version 3.x.x I tried ( 3.0.4, 3.3.0, 3.3.1, ) it fails. $ gcc -Wall -c g.c test.c: In function `creation_fourmi': test.c:15: internal compiler error: in expand_expr, at expr.c:6933 Please submit a full bug report, with preprocessed source if appropriate. -- Summary: internal compiler error with structures Product: gcc Version: 3.3.1 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sylvain at gplservice dot fr CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13732
next reply other threads:[~2004-01-18 20:51 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-01-18 20:51 sylvain at gplservice dot fr [this message] 2004-01-18 20:54 ` [Bug c/13732] " sylvain at gplservice dot fr 2004-01-18 21:00 ` dhazeghi at yahoo dot com 2004-01-18 21:07 ` [Bug c/13732] internal compiler error with structures with VLAs and functions inside functions pinskia at gcc dot gnu dot org 2004-01-18 21:08 ` pinskia at gcc dot gnu dot org 2004-01-18 22:17 ` pinskia at gcc dot gnu dot org 2004-01-28 5:58 ` [Bug c/13732] [3.3/3.4/3.5 Regression] " pinskia at gcc dot gnu dot org 2004-02-15 12:40 ` gdr at gcc dot gnu dot org 2004-03-01 1:47 ` mmitchel at gcc dot gnu dot org 2004-03-08 15:53 ` pinskia at gcc dot gnu dot org 2004-05-13 23:36 ` pinskia at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20040118205152.13732.sylvain@gplservice.fr \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).