Bug 95703 - [9 only] Please backport r10-4094 to gcc 9
Summary: [9 only] Please backport r10-4094 to gcc 9
Status: RESOLVED WONTFIX
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 9.3.1
: P3 normal
Target Milestone: 9.5
Assignee: Not yet assigned to anyone
URL:
Keywords: rejects-valid
Depends on:
Blocks:
 
Reported: 2020-06-16 17:07 UTC by Rafael Avila de Espindola
Modified: 2022-05-27 08:54 UTC (History)
4 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rafael Avila de Espindola 2020-06-16 17:07:08 UTC
We (seastar) recently hit a build error with gcc 9 because the fix in 0998d2fd59e7a5eb3a3566c57625702bbdc6a05f is missing.

Given that P1286R2 is about c++11 and newer, could the fix be backported to gcc 9?

The original commit message is:

    Implement P1286R2, Contra CWG1778
    
    The C++11 requirement that an explicit exception-specification on a
    defaulted function match the implicit one was found to be problematic for
    std::atomic.  This paper, adopted in February, simply removes that
    requirement: if an explicitly defaulted function has a different
    exception-specification, that now works just like a user-written function:
    either it isn't noexcept when it could be, or it is noexcept and will call
    terminate if an exception is thrown.
Comment 1 Richard Biener 2022-05-27 08:54:51 UTC
Wasn't backported I suppose, GCC 9 is now closed.