On 4 January 2015 at 09:26, Marc Glisse wrote: > On Sat, 3 Jan 2015, Tim Prince wrote: > >> What is this new feature which breaks stl_algo.h ? >> >> g++ -c loopstl.cpp >> >> In file included from /usr/local/gcc5.0/include/c++/5.0.0/functional:49:0, >> from loopstl.cpp:17: >> /usr/local/gcc5.0/include/c++/5.0.0/bits/stl_function.h:169:7: error: >> ‘_GLIBCXX14_CONSTEXPR’ does not name a type >> _GLIBCXX14_CONSTEXPR >> ^ >> >> I'm trying to use std::max_element et al in the old way which has worked >> for years, and was still working in g++ 5.0 build of Dec. 18. > > > The first thing <functional> and most headers do is include bits/c++config.h > which defines _GLIBCXX14_CONSTEXPR as empty. Could you check that the right > version of c++config.h does indeed get included? If it's not defined it means you built and/or installed GCC wrong. A fresh build in an empty directory should solve it, and might be simpler than figuring out what you did wrong.