[Felix-language] Grr

2014-03-01 Thread john skaller
Processing [14/127]: coroutines-01.flx sh: line 1: 371 Segmentation fault STUPID clang. Code works fine with -O1. I reduced it to no optimisation and now it fails. -- john skaller skal...@users.sourceforge.net http://felix-lang.org ---

Re: [Felix-language] Grr

2011-11-04 Thread john skaller
On 04/11/2011, at 11:17 PM, john skaller wrote: > Another day another bug .. :) > > generated code giving error: > //- > //EMIT USER BODY CODE > >void _rev(_poly_5493t_29757* plt) >void _rev(_poly_5493t_29764* plt) >{ // in place reversal >

Re: [Felix-language] Grr

2011-11-04 Thread john skaller
On 04/11/2011, at 11:17 PM, john skaller wrote: > Another day another bug .. :) This particular problem with polymorphic insertions will occur whenever two distinct Felix types map to distinct C typedef names for the same type. It won't occur with, for example: type A = "int" type B = "int"

Re: [Felix-language] Grr

2011-11-04 Thread john skaller
Another day another bug .. :) ~/felix>flx --test=build/release -c --static lt ./lt.cpp: In function ‘void _rev(void**)’: ./lt.cpp:28: error: redefinition of ‘void _rev(void**)’ compilation terminated due to -Wfatal-errors. list.flx // in place list reversal: unsafe! proc rev[T,PLT=&list[T]]

Re: [Felix-language] Grr

2011-11-03 Thread john skaller
On 02/11/2011, at 6:21 PM, john skaller wrote: > > On 01/11/2011, at 4:27 PM, john skaller wrote: > >> >> On 01/11/2011, at 1:30 PM, john skaller wrote: >>> >>> Grrr .. >>> >>> ~/felix>tools/flx_ls . '.*\.flx' >>> Segmentation fault >> >> >> Sigh .. looks like a bug in RE2 corrupting memo

Re: [Felix-language] Grr

2011-11-02 Thread john skaller
On 01/11/2011, at 4:27 PM, john skaller wrote: > > On 01/11/2011, at 1:30 PM, john skaller wrote: >> >> Grrr .. >> >> ~/felix>tools/flx_ls . '.*\.flx' >> Segmentation fault > > > Sigh .. looks like a bug in RE2 corrupting memory.. all these bugs are > tiresome .. > the idea of Felix is to

Re: [Felix-language] Grr

2011-11-01 Thread Erick Tryzelaar
1. Download the latest RE2 tarball 2. cd src/re2/re2 3. rm -r * (be careful here :) ) 4. extract the tarball in that directory 5. recompile felix if everything worked: 6. cd src/re2/re2 7. git add . 6. git gui (make sure everything looks good) 7. commit re2 and push 8. cd ../../ && git gui (add

Re: [Felix-language] Grr

2011-10-31 Thread john skaller
Erick .. what's the procedure for upgrading RE2 in the repository? -- john skaller skal...@users.sourceforge.net -- RSA® Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1

Re: [Felix-language] Grr

2011-10-31 Thread john skaller
On 01/11/2011, at 1:30 PM, john skaller wrote: > > Grrr .. > > ~/felix>tools/flx_ls . '.*\.flx' > Segmentation fault Sigh .. looks like a bug in RE2 corrupting memory.. all these bugs are tiresome .. the idea of Felix is to get rid of these bugs ..:] src/re2/re2/re2/re2.cc:509: Invalid RE2

[Felix-language] Grr

2011-10-31 Thread john skaller
This works: ~/felix>tools/flx_cp . '(.*).flx' 'xxx\1.xxx' --test but this: ~/felix>tools/flx_cp .. '(.*).flx' 'xxx\1.xxx' --test doesn't: ~/felix>gdb tools/flx_cp GNU gdb 6.3.50-20050815 (Apple version gdb-1515) (Sat Jan 15 08:33:48 UTC 2011) Copyright 2004 Free Software Foundation, Inc. GDB i