Summary: | games-action/btanks-0.9.8083 : mrt/exception.h:63:163: error: throw will always call terminate() [-Werror=terminate] | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Gentoo Games <games> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | plevine457 |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 582084 | ||
Attachments: |
emerge-info.txt
config.log emerge-history.txt environment etc.portage.tbz2 games-action:btanks-0.9.8083:20170218-012801.log patch to add noexcept(false) to destructor |
Description
Toralf Förster
2017-02-18 09:32:41 UTC
Created attachment 464188 [details]
emerge-info.txt
Created attachment 464190 [details]
config.log
Created attachment 464192 [details]
emerge-history.txt
Created attachment 464194 [details]
environment
Created attachment 464196 [details]
etc.portage.tbz2
Created attachment 464198 [details]
games-action:btanks-0.9.8083:20170218-012801.log
This is new behaviour from gcc 6 branch that means destructors are noexcept by default. As a workaround you can add "-Wno-error=terminate" to CXXFLAGS or try the attached patch. I have not tried it, but I believe it would help. Created attachment 464206 [details, diff]
patch to add noexcept(false) to destructor
(In reply to zakalwe from comment #8) > Created attachment 464206 [details, diff] [details, diff] > patch to add noexcept(false) to destructor That patch will fail with GCC 5 and below, as they compile C++ in -std=gnu++98 mode by default, which doesn't know noexcept(). The proper fix is to make it conditional on the __cplusplus macro value. commit ddc1a4cfd09f5429575c3eba483995b22907d9ef Author: Peter Levine <plevine457@gmail.com> Date: Mon Jul 24 00:26:42 2017 -0400 games-action/btanks: Fix building with -Werror=terminate in GCC-6 Bug: https://bugs.gentoo.org/show_bug.cgi?id=609692 |