I started this discussion because I thought that not everybody was aware of the impact of the recent c++11 changes. We now have stronger requirements than most projects, but this also means we have cleaner c++ code :) I think that's worth it.
I'll test with different gcc and clang versions so we can add a check in factor.sh. Note: Wheezy is now oldstable, so has been "obsolete" for 4 months (it still gets security fixes until february 2016, and after that debian's LTS until 2018). Jon On Fri, Aug 14, 2015 at 7:54 PM, John Benediktsson <mrj...@gmail.com> wrote: > Are we using too-bleeding-edge C++ features? > > Is the suggestion maybe we scale down to some subset compilers have had > working for 3-4 years? > > > On Aug 14, 2015, at 10:51 AM, Jon Harper <jon.harpe...@gmail.com> wrote: > > Well that's GCC 4.7.2 <https://gcc.gnu.org/gcc-4.7/> September 20, 2012 > Gcc did fix this in GCC 4.7.3 <https://gcc.gnu.org/gcc-4.7/> April 11, > 2013 > > Also, clang does not error on the implicit this, but crashes hard earlier > than gcc :) > > $ clang --version > Debian clang version 3.0-6.2 (tags/RELEASE_30/final) (based on LLVM 3.0) > Target: i386-pc-linux-gnu > Thread model: posix > > $ CC=clang CXX=clang++ make > make `./build-support/factor.sh make-target` > [...snip...] > 1. vm/free_list_allocator.hpp:124:57: current parser token ';' > 2. vm/free_list_allocator.hpp:1:1: parsing namespace 'factor' > 3. vm/free_list_allocator.hpp:123:68: parsing function body 'sweep' > 4. vm/free_list_allocator.hpp:123:68: in compound statement ('{}') > clang: error: unable to execute command: Segmentation fault > <https://lists.sourceforge.net/lists/listinfo/factor-talk> > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Factor-talk mailing list > Factor-talk@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/factor-talk > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Factor-talk mailing list > Factor-talk@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/factor-talk > >
------------------------------------------------------------------------------
_______________________________________________ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk