Project:Toolchain/GCC-6 porting

From Gentoo Wiki
Jump to:navigation Jump to:search

Here are some hints how to fix packages that fail build with gcc-6. Please extend and improve!

error: throw will always call terminate()

  • solution: never throw exceptions in destructors
  • workaround: downgrade this to a warning (but the exception will still call terminate)
  • workaround: force gnu++98 language standard