Bug 2131454 - error: ISO C++17 does not allow dynamic exception specifications
Summary: error: ISO C++17 does not allow dynamic exception specifications
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: source-highlight
Version: 35
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Adrian Reber
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-10-01 11:47 UTC by Patrick Monnerat
Modified: 2022-11-10 22:11 UTC (History)
4 users (show)

Fixed In Version: source-highlight-3.1.9-15.fc36 source-highlight-3.1.9-15.fc35 source-highlight-3.1.9-15.fc37
Doc Type: ---
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-10-15 21:18:41 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Patrick Monnerat 2022-10-01 11:47:34 UTC
Description of problem:
When compiling a program including srclite/* header files, I get the error:

/usr/include/srchilite/fileutil.h:30:41: error: ISO C++17 does not allow dynamic exception specifications
   30 | string readFile(const string &fileName) throw (IOException);
      |                                         ^~~~~

Version-Release number of selected component (if applicable):
3.1.9-11

How reproducible:
Always

Additional info:
This occurs because c++17 is the default for g++ compiler.
Compiling with --std=c++14 is OK.
Upstream committed a fix for this (http://git.savannah.gnu.org/cgit/src-highlite.git/commit/?id=904949c9026cb772dc93fbe0947a252ef47127f4), but has not released a new version since then. Can you please apply the patch to the Fedora package?
Thanks in advance.

Comment 1 Fedora Update System 2022-10-06 15:24:33 UTC
FEDORA-2022-7650ae5363 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2022-7650ae5363

Comment 2 Fedora Update System 2022-10-06 15:29:48 UTC
FEDORA-2022-f1b5aa02b4 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-f1b5aa02b4

Comment 3 Fedora Update System 2022-10-06 15:30:16 UTC
FEDORA-2022-5331021e73 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-5331021e73

Comment 4 Fedora Update System 2022-10-07 11:44:02 UTC
FEDORA-2022-5331021e73 has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-5331021e73`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-5331021e73

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2022-10-07 15:59:42 UTC
FEDORA-2022-f1b5aa02b4 has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-f1b5aa02b4`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-f1b5aa02b4

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2022-10-07 16:01:57 UTC
FEDORA-2022-7650ae5363 has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-7650ae5363`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-7650ae5363

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2022-10-15 21:18:41 UTC
FEDORA-2022-f1b5aa02b4 has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 8 Fedora Update System 2022-10-15 21:26:21 UTC
FEDORA-2022-7650ae5363 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Fedora Update System 2022-11-10 22:11:54 UTC
FEDORA-2022-5331021e73 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.