Bug 2336713
Summary: | meshlab fails to build with GCC 15 (C++ "different exception specifier") | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Dave Malcolm <dmalcolm> |
Component: | gcc | Assignee: | Jakub Jelinek <jakub> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | dmalcolm, fweimer, jakub, jason, jlaw, josmyers, jwakely, mcermak, mhroncok, mpolacek, msebor, nickc, nixuser, sipoyare, spacewar, spotrh |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2025-01-17 14:11:08 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 2333037 |
Description
Dave Malcolm
2025-01-09 19:27:22 UTC
Minimised reproducer, using -std=c++11: #include <new> void *operator new(std::size_t x) throw(std::bad_alloc); Jason suggested it probably started to be rejected with https://gcc.gnu.org/r15-3532-g7cebc6384a0ad6 which seems likely. It might make sense to relax the error to a warning for the specific case of definitions of operator new, because in C++98 it was required to declare them as throw(std::bad_alloc). r15-6751-gfab96de044f1f0 should fix this. Looks like it was actually the previous commit, r15-6750-g3cae3a80695e5a I am a tad confused. Do we need to fix mashlab, or do you use this a forum to discuss changes in gcc, and will eventually turn this into NOTABUG? ...use this as a forum... Dave is filing FTBFS bugs for test rebuilds with GCC 15. Most of them are package bugs that should be fixed. In this case the package does contain code that is technically invalid in current C++ standards, but GCC has been relaxed to allow it with a warning. So this one will probably get closed as NOTABUG. Moving this to gcc since the gcc bug seems to have been fixed. I'm filing a separate bug for the failures I'm currently seeing now, since they're meshlab bugs. |