Skip to content

some libc++ 19.1.0 headers no longer compile with C++11 #126733

@edfvogel

Description

@edfvogel

I note that the libc++ 19.1.0 headers contain code that is not valid C++11 code.

For example __type_traits/desugars_to.h contains:

template <class _CanonicalTag, class _Operation, class... _Args>
inline const bool __desugars_to_v = false;

variable templates were introduced in C++14.

If I compile with -Werror -Wstd=c++11 the compiler I use will give an error.

I believe this code (and its uses) should be guarded with _LIBCPP_STD_VERSION >= 14 conditionals.

Thank you for your time in this matter,

Ed Vogel

Metadata

Metadata

Assignees

No one assigned

    Labels

    libc++libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.questionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions