[Bug c++/93821] Define __cplusplus to 202002L in C++20

2022-10-12 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93821 --- Comment #11 from Jonathan Wakely --- No, because that just makes it more awkward to write makefiles and build scripts. We used to do that, and it had no real benefit. If you want to use c++2a, you can use that. Other people just want to use c

[Bug c++/93821] Define __cplusplus to 202002L in C++20

2022-10-12 Thread mail at 3v1n0 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93821 --- Comment #10 from Marco Trevisan --- I see the point, but then I also think that gcc-10 should not support `--std=c++20` option but rather only the `--std=c++2a` one.

[Bug c++/93821] Define __cplusplus to 202002L in C++20

2022-10-12 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93821 --- Comment #9 from Jonathan Wakely --- No. C++20 support in GCC 10 is missing a number of features, so it would be misleading/incorrect to define it to 202002L. https://gcc.gnu.org/projects/cxx-status.html#cxx20 You can just test for > 201703L

[Bug c++/93821] Define __cplusplus to 202002L in C++20

2022-10-12 Thread mail at 3v1n0 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93821 Marco Trevisan changed: What|Removed |Added CC||mail at 3v1n0 dot net --- Comment #8 fr

[Bug c++/93821] Define __cplusplus to 202002L in C++20

2021-01-19 Thread romain.geissler at amadeus dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93821 Romain Geissler changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug c++/93821] Define __cplusplus to 202002L in C++20

2020-07-22 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93821 Richard Biener changed: What|Removed |Added Target Milestone|10.2|10.3 --- Comment #6 from Richard Biener

[Bug c++/93821] Define __cplusplus to 202002L in C++20

2020-05-07 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93821 Jakub Jelinek changed: What|Removed |Added Target Milestone|10.0|10.2 --- Comment #5 from Jakub Jelinek

[Bug c++/93821] Define __cplusplus to 202002L in C++20

2020-02-19 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93821 --- Comment #4 from Richard Biener --- Don't we up __cplusplus only when we support all language features?

[Bug c++/93821] Define __cplusplus to 202002L in C++20

2020-02-19 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93821 --- Comment #3 from Jonathan Wakely --- (In reply to Romain Geissler from comment #2) > You may have misunderstood my intentions here. Yes, looks like I did. The way you phrased it (particularly "you need to use this assertions so that there is

[Bug c++/93821] Define __cplusplus to 202002L in C++20

2020-02-19 Thread romain.geissler at amadeus dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93821 --- Comment #2 from Romain Geissler --- You may have misunderstood my intentions here. I was just trying to suggest a change which I think is better for the consistency with the standard and with clang which just implemented this change. So yes

[Bug c++/93821] Define __cplusplus to 202002L in C++20

2020-02-19 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93821 --- Comment #1 from Jonathan Wakely --- (In reply to Romain Geissler from comment #0) > A few hours ago the clang folks did add explicit support for the flag > -std=c++20, and not only did they change that, they also changed the value > of __cplu

[Bug c++/93821] Define __cplusplus to 202002L in C++20

2020-02-19 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93821 Martin Liška changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|