Skip to content
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

C++ compiler pretends to support C++11 but does not have <cuchar> #44216

Closed
bhaible opened this issue Feb 11, 2020 · 3 comments
Closed

C++ compiler pretends to support C++11 but does not have <cuchar> #44216

bhaible opened this issue Feb 11, 2020 · 3 comments
Assignees
Labels
bugzilla Issues migrated from bugzilla confirmed Verified by a second party libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.

Comments

@bhaible
Copy link

bhaible commented Feb 11, 2020

Bugzilla Link 44871
Version 6.0
OS FreeBSD
Attachments test case
CC @ldionne,@mclow

Extended Description

Originally reported at https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244035.
The FreeBSD people told me to report it here.

C++11 added the header file (a wrapper around the C header file <uchar.h>). See https://en.cppreference.com/w/cpp/header

$ cat foo.cc
#if __cplusplus >= 201103
#include
#endif

$ c++ -c foo.cc
foo.cc:2:10: fatal error: 'cuchar' file not found
#include
^~~~~~~~
1 error generated.

$ c++ --version
FreeBSD clang version 6.0.1 (tags/RELEASE_601/final 335540) (based on LLVM 6.0.1)
Target: x86_64-unknown-freebsd12.0
Thread model: posix
InstalledDir: /usr/bin

@bhaible
Copy link
Author

bhaible commented Feb 11, 2020

assigned to @ldionne

@ldionne
Copy link
Member

ldionne commented Mar 3, 2021

Up for review: https://reviews.llvm.org/D97870

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 10, 2021
@llvmbot llvmbot added the confirmed Verified by a second party label Jan 26, 2022
@ldionne
Copy link
Member

ldionne commented Mar 7, 2022

Fixed by 311ff39

@ldionne ldionne closed this as completed Mar 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla confirmed Verified by a second party libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.
Projects
None yet
Development

No branches or pull requests

3 participants