This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Hi, I have a bug, I can crash everything :)


> 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]