[fpc-pascal] Re: Segmentation fault gone if compiled with -glh

2011-01-10 Thread leledumbo
Update: this is something really really weird, if AStream.Free (last statement) in linguc.lpr is removed, then the error's totally GONE! -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Segmentation-fault-gone-if-compiled-with-glh-tp3334353p3335939.html Sent from

[fpc-pascal] Re: Segmentation fault gone if compiled with -glh

2011-01-10 Thread leledumbo
I've tried changing const to constref and recompile fgl unit, no effect :( -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Segmentation-fault-gone-if-compiled-with-glh-tp3334353p3335091.html Sent from the Free Pascal - General mailing list archive at Nabble.com.

[fpc-pascal] Re: Segmentation fault gone if compiled with -glh

2011-01-10 Thread leledumbo
Sorry, I was referring to the new code. Yes, that line adds class instance to TFPGObjectList. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Segmentation-fault-gone-if-compiled-with-glh-tp3334353p3334791.html Sent from the Free Pascal - General mailing list arc

[fpc-pascal] Re: Segmentation fault gone if compiled with -glh

2011-01-10 Thread leledumbo
> In the program I could narrow the problem down to line 117 in parser.pp. > If that one was removed it ran fine Of course, because removing that line causes nothing to be parsed (it's the first top level production that deals with something from the input) ;) -- View this message in context: