[libcxx-commits] [PATCH] D108630: [libc++] Remove _LIBCPP_HAS_NO_LONG_LONG in favour of using_if_exists

Dimitry Andric via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu Sep 2 06:27:48 PDT 2021


dim added a comment.

Ah, gcc doesn't work at all with libc++ before C+11 :)  I tried with gcc 12.0.0 20210711, and it spews hundreds of errors, starting off with:

  In file included from /usr/include/c++/v1/iostream:36,
                   from helloworld.cpp:1:
  /usr/include/c++/v1/__config:238:2: error: #error "libc++ does not support using GCC with C++03. Please enable C++11"
    238 | #error "libc++ does not support using GCC with C++03. Please enable C++11"
        |  ^~~~~
  In file included from /usr/include/c++/v1/iostream:36,
                   from helloworld.cpp:1:
  /usr/include/c++/v1/__config:445:3: error: #error "We don't know a correct way to implement alignof(T) in C++03 outside of Clang"
    445 | # error "We don't know a correct way to implement alignof(T) in C++03 outside of Clang"
        |   ^~~~~
  In file included from /usr/include/c++/v1/iostream:36,
                   from helloworld.cpp:1:

so I guess that use case is out anyway... And in case of >= C++11, we can just assume long long is available, and `__LONG_LONG_SUPPORTED` will be defined.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D108630/new/

https://reviews.llvm.org/D108630



More information about the libcxx-commits mailing list