This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Hi, I have a bug, I can crash everything :)
- To: ehkaplan at engin dot umich dot edu
- Subject: Re: Hi, I have a bug, I can crash everything :)
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Wed, 19 Apr 2000 23:54:25 +0200
- CC: gcc-bugs at gcc dot gnu dot org
- References: <Pine.SOL.4.02.10004191433150.25987-300000@mux.engin.umich.edu>
> See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for
> instructions.
Thanks for your bug report. Please do have a look at
http://www.gnu.org/software/gcc/bugs.html
I could not really reproduce the problem, because I don't have
GL/glut.h.
In any case, your error is in
int numchild = 3;
typedef struct treenode
{
struct treenode * next;
struct treenode * child[numchild];
You can't have a class with a variable-size member.
Regards,
Martin