Re: [Tinycc-devel] segfault with static array initialized by a macro

2012-10-21 Thread Thomas Preud'homme
Le dimanche 21 octobre 2012 13:51:16, Thomas Preud'homme a écrit : > Le dimanche 21 octobre 2012 13:48:18, Thomas Preud'homme a écrit : > > The second mistake is that nocode_wanted should be 1 if processing some > > static variable since it will be outside any function. This is probably > > the eas

Re: [Tinycc-devel] segfault with static array initialized by a macro

2012-10-21 Thread Thomas Preud'homme
Le dimanche 21 octobre 2012 13:48:18, Thomas Preud'homme a écrit : > > The second mistake is that nocode_wanted should be 1 if processing some > static variable since it will be outside any function. This is probably > the easiest fix but really both problems should be fixed IMHO. Since VLA is pr

Re: [Tinycc-devel] segfault with static array initialized by a macro

2012-10-21 Thread Thomas Preud'homme
Le samedi 20 octobre 2012 19:03:19, Didier Barvaux a écrit : > Hello all, > > In encountered what seems to be a bug in TCC (git revision > ad5f3758c38f2364f03205dcb9fd48142d2d4499). I narrowed it down to the > following test case. > > > $ cat segfault_with_static_array.c > > #include > > #def