[llvm-bugs] [Bug 44871] New: C++ compiler pretends to support C++11 but does not have <cuchar>

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Feb 11 05:52:17 PST 2020


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

            Bug ID: 44871
           Summary: C++ compiler pretends to support C++11 but does not
                    have <cuchar>
           Product: libc++
           Version: 6.0
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Standards Issues
          Assignee: unassignedclangbugs at nondot.org
          Reporter: bruno at clisp.org
                CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com

Created attachment 23120
  --> https://bugs.llvm.org/attachment.cgi?id=23120&action=edit
test case

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 <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.

$ 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

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200211/b20e001d/attachment.html>


More information about the llvm-bugs mailing list