[Bug c++/94753] -undef, c++20 and feature-test macros

2024-04-25 Thread r_new at rambler dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94753 --- Comment #3 from r_new at rambler dot ru --- Don't know gcc code, but /* For C++11+ __cpp_constexpr and __cpp_static_assert should be defined. */ #if __cplusplus >= 201103L is not true. All standard predefined macros listed in chapt

[Bug preprocessor/94753] New: -undef, c++20 and feature-test macros

2020-04-24 Thread r_new at rambler dot ru
: preprocessor Assignee: unassigned at gcc dot gnu.org Reporter: r_new at rambler dot ru Target Milestone: --- In c++20 feature-test macros (_­_­cpp_­attributes, _­_­cpp_­constexpr, ...) are standard predefined macros, must be predefined even with -undef. g++ -undef -std=c++2a -E -dM -x c