Skip to content

The standard library header <cstdalign> is missing #37759

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
yurivict opened this issue Aug 1, 2018 · 3 comments · Fixed by #111615
Closed

The standard library header <cstdalign> is missing #37759

yurivict opened this issue Aug 1, 2018 · 3 comments · Fixed by #111615
Assignees
Labels
bugzilla Issues migrated from bugzilla invalid Resolved as invalid, i.e. not a bug libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.

Comments

@yurivict
Copy link

yurivict commented Aug 1, 2018

Bugzilla Link 38411
Version unspecified
OS FreeBSD
CC @mclow

Extended Description

I found this problem on FreeBSD, which uses clang and llvm C++ library: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230230

cppreference says that there should be such standard header: https://en.cppreference.com/w/cpp/header/cstdalign

@yurivict
Copy link
Author

yurivict commented Aug 1, 2018

assigned to @mclow

@mclow
Copy link
Contributor

mclow commented Aug 2, 2018

In the long run, you'll want to fix your code, because was deprecated in C++17, and will be removed outright for C++20.

c++17: [diff.mods.to.headers]/4 says:
The headers , (D.4.2), and (D.4.3) are meaningless in C++. Use of the C++ headers , , , and is deprecated (D.5).

c++2a [diff.cpp17.library]/2 says:
Change: Remove vacuous C++ header files.
Rationale: The empty headers implied a false requirement to achieve C compatibility with the C++ headers. Effect on original feature: A valid C++ 2017 program that #includes any of the following headers may fail to compile: , , , , and .

That being said, it looks like libc++ never added or for C++11.

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 10, 2021
@JOE1994 JOE1994 closed this as not planned Won't fix, can't repro, duplicate, stale May 13, 2024
@EugeneZelenko EugeneZelenko added the invalid Resolved as invalid, i.e. not a bug label May 13, 2024
@frederick-vs-ja
Copy link
Contributor

I think this issue is essentially fixed by a linked PR.

@EugeneZelenko EugeneZelenko closed this as not planned Won't fix, can't repro, duplicate, stale Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla invalid Resolved as invalid, i.e. not a bug libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants