This is an archive of the discontinued LLVM Phabricator instance.

[NFC][libc++] Addresses LWG3905.
ClosedPublic

Authored by Mordante on Jun 19 2023, 8:13 AM.

Details

Reviewers
philnik
Group Reviewers
Restricted Project
Commits
rGd3d079678ccd: [NFC][libc++] Addresses LWG3905.
Summary

Note libc++ implemented this in its initial version. It always used the type
from the C library and never validated whether it was an integer type.

Implements

  • LWG3905 Type of std::fexcept_t

Diff Detail

Event Timeline

Mordante created this revision.Jun 19 2023, 8:13 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 19 2023, 8:13 AM
Mordante requested review of this revision.Jun 19 2023, 8:13 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 19 2023, 8:13 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript

This looks more like a "Nothing to do" to me, since we don't actually have to change anything.

ldionne added inline comments.
libcxx/docs/Status/Cxx2cIssues.csv
1

libcxx/test/std/depr/depr.c.headers/fenv_h.compile.pass.cpp:60 has

fexcept_t fex = 0;

which is not conforming IIUC. We should change it.

Mordante updated this revision to Diff 532949.Jun 20 2023, 8:29 AM

Addresses review comments.

Mordante marked an inline comment as done.Jun 20 2023, 8:31 AM

This looks more like a "Nothing to do" to me, since we don't actually have to change anything.

To me "Nothing to do" means no library implementation needs to make changes, not just us.
Otherwise when we don't implement a feature and it's removed from the Standard that would mean nothing to do too.

libcxx/docs/Status/Cxx2cIssues.csv
1

Nice catch!

This looks more like a "Nothing to do" to me, since we don't actually have to change anything.

To me "Nothing to do" means no library implementation needs to make changes, not just us.
Otherwise when we don't implement a feature and it's removed from the Standard that would mean nothing to do too.

Well, no previously conforming implementation has to make changes. This LWG issue is specifically to make more implementations conforming.

Mordante updated this revision to Diff 534195.Jun 24 2023, 4:35 AM
Mordante marked an inline comment as done.

CI fixes.

Mordante updated this revision to Diff 534198.Jun 24 2023, 5:07 AM

Retest CI seems to be a timing issue.

philnik accepted this revision.Jul 7 2023, 4:22 PM
This revision is now accepted and ready to land.Jul 7 2023, 4:22 PM
This revision was automatically updated to reflect the committed changes.