[Bug c++/116491] GCC defines macro linux if -std is not set, and does not define otherwise

2024-08-26 Thread sergio_nsk at yahoo dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116491 --- Comment #3 from Sergey Markelov --- This is not a duplicate. The macro is defined conditionally, this is not a correct behavior.

[Bug c++/116491] GCC defines macro linux if -std is not set, and does not define otherwise

2024-08-26 Thread sergio_nsk at yahoo dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116491 --- Comment #1 from Sergey Markelov --- Expected: GCC should not define the undocumented/non standard macro `linux`.

[Bug c++/116491] New: GCC defines macro linux if -std is not set, and does not define otherwise

2024-08-26 Thread sergio_nsk at yahoo dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116491 Bug ID: 116491 Summary: GCC defines macro linux if -std is not set, and does not define otherwise Product: gcc Version: 14.1.0 Status: UNCONFIRMED Severity: no