Bug 244035 - C++ compiler pretends to support C++11 but does not have <cuchar>
Summary: C++ compiler pretends to support C++11 but does not have <cuchar>
Status: Closed Not Accepted
Alias: None
Product: Base System
Classification: Unclassified
Component: standards (show other bugs)
Version: 12.0-RELEASE
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-toolchain (Nobody)
URL: https://en.cppreference.com/w/cpp/hea...
Keywords: feature, standards
Depends on:
Blocks:
 
Reported: 2020-02-11 03:59 UTC by bruno
Modified: 2020-02-11 06:55 UTC (History)
3 users (show)

See Also:
koobs: maintainer-feedback+


Attachments
test case (51 bytes, text/plain)
2020-02-11 03:59 UTC, bruno
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description bruno 2020-02-11 03:59:39 UTC
Created attachment 211548 [details]
test case

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

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

$ c++ -c foo.cc
foo.cc:2:10: fatal error: 'cuchar' file not found
#include <cuchar>
         ^~~~~~~~
1 error generated.
Comment 1 Dimitry Andric freebsd_committer freebsd_triage 2020-02-11 06:08:44 UTC
Please report this upstream instead, at: https://bugs.llvm.org/
Comment 2 Jung-uk Kim freebsd_committer freebsd_triage 2020-02-11 06:40:56 UTC
(In reply to Dimitry Andric from comment #1)
FYI, it seems there's a similar one.

https://bugs.llvm.org/show_bug.cgi?id=38411

The assignee is clearly aware of the fact that cuchar is missing.