public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/13732] New: internal compiler error with structures
@ 2004-01-18 20:51 sylvain at gplservice dot fr
  2004-01-18 20:54 ` [Bug c/13732] " sylvain at gplservice dot fr
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: sylvain at gplservice dot fr @ 2004-01-18 20:51 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2004-05-13 13:25 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-18 20:51 [Bug c/13732] New: internal compiler error with structures sylvain at gplservice dot fr
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

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).