> Even through std=c++11 is the new default, right? No. still the same as in 4.9. GCC 6 (currently gcc-snapshot) will default to c++14. For GCC 5, please use a standard explicitly, if you need it.
-- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to apt in Ubuntu. https://bugs.launchpad.net/bugs/1477299 Title: please fix building apt using gcc-snapshot Status in apt package in Ubuntu: Confirmed Bug description: please fix building apt using gcc-snapshot. I'd like to check the possible wrong-code issue with the GCC trunk version. The build fails with: In file included from ../build/include/apt-pkg/algorithms.h:35:0, from /scratch/doko/tmp/apt-1.0.9.10ubuntu4/cmdline/apt-get.cc:31: ../build/include/apt-pkg/depcache.h: In member function 'bool pkgDepCache::MarkAndSweep()': ../build/include/apt-pkg/depcache.h:406:11: warning: 'template<class> class std::auto_ptr' is deprecated [-Wd eprecated-declarations] std::auto_ptr<InRootSetFunc> f(GetRootSetFunc()); ^ In file included from /usr/lib/gcc-snapshot/include/c++/6.0.0/memory:81:0, from ../build/include/apt-pkg/depcache.h:48, from ../build/include/apt-pkg/algorithms.h:35, from /scratch/doko/tmp/apt-1.0.9.10ubuntu4/cmdline/apt-get.cc:31: /usr/lib/gcc-snapshot/include/c++/6.0.0/bits/unique_ptr.h:49:28: note: declared here template<typename> class auto_ptr; ^ /scratch/doko/tmp/apt-1.0.9.10ubuntu4/cmdline/apt-get.cc: In function 'bool DoDownload(CommandLine&)': /scratch/doko/tmp/apt-1.0.9.10ubuntu4/cmdline/apt-get.cc:633:36: error: no matching function for call to 'APT::CacheSetHelper::CacheSetHelper(std::ostream&)' APT::CacheSetHelper helper(c0out); ^ In file included from /scratch/doko/tmp/apt-1.0.9.10ubuntu4/cmdline/apt-get.cc:34:0: ../build/include/apt-pkg/cacheset.h:49:2: note: candidate: APT::CacheSetHelper::CacheSetHelper(bool, GlobalError::MsgType) CacheSetHelper(bool const ShowError = true, ^ ../build/include/apt-pkg/cacheset.h:49:2: note: no known conversion for argument 1 from 'std::ostream {aka std::basic_ostream<char>}' to 'bool' ../build/include/apt-pkg/cacheset.h:39:7: note: candidate: constexpr APT::CacheSetHelper::CacheSetHelper(const APT::CacheSetHelper&) class CacheSetHelper { /*{{{*/ ^ To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1477299/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp