-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: "<ciso646> is deprecated in C++17, use <version> to detect implementation-specific macros" on fedora:rawhide #4701
Comments
From cppreference:
Sounds like we can just change
to @rouault Could you try if that fixes the warning? |
I just tested the following:
|
Hi, FYI, fedora has applied this change: https://src.fedoraproject.org/rpms/gtest/c/b3fe6f803a1e554971f70e1c3f55aa5fcb377b1b?branch=rawhide (ie include |
Looks like this fix has been applied?
|
* some recipes which use googletest fail with: gtest/src/gtest_main.cc:32: recipe-sysroot/usr/include/c++/15.0.1/ciso646:46:4: error: #warning "<ciso646> is deprecated in C++17, use <version> to detect implementation-specific macros" [-Werror=cpp] 46 | # warning "<ciso646> is deprecated in C++17, use <version> to detect implementation-specific macros" | ^~~~~~~ backport a fix for this. * see google/googletest#4701 Signed-off-by: Martin Jansa <[email protected]> Signed-off-by: Khem Raj <[email protected]>
* some recipes which use googletest fail with: gtest/src/gtest_main.cc:32: recipe-sysroot/usr/include/c++/15.0.1/ciso646:46:4: error: #warning "<ciso646> is deprecated in C++17, use <version> to detect implementation-specific macros" [-Werror=cpp] 46 | # warning "<ciso646> is deprecated in C++17, use <version> to detect implementation-specific macros" | ^~~~~~~ backport a fix for this. * see google/googletest#4701 Signed-off-by: Martin Jansa <[email protected]>
* some recipes which use googletest fail with: gtest/src/gtest_main.cc:32: recipe-sysroot/usr/include/c++/15.0.1/ciso646:46:4: error: #warning "<ciso646> is deprecated in C++17, use <version> to detect implementation-specific macros" [-Werror=cpp] 46 | # warning "<ciso646> is deprecated in C++17, use <version> to detect implementation-specific macros" | ^~~~~~~ backport a fix for this. * see google/googletest#4701 Signed-off-by: Martin Jansa <[email protected]> Signed-off-by: Khem Raj <[email protected]>
* some recipes which use googletest fail with: gtest/src/gtest_main.cc:32: recipe-sysroot/usr/include/c++/15.0.1/ciso646:46:4: error: #warning "<ciso646> is deprecated in C++17, use <version> to detect implementation-specific macros" [-Werror=cpp] 46 | # warning "<ciso646> is deprecated in C++17, use <version> to detect implementation-specific macros" | ^~~~~~~ backport a fix for this. * see google/googletest#4701 Signed-off-by: Martin Jansa <[email protected]> Signed-off-by: Khem Raj <[email protected]>
* some recipes which use googletest fail with: gtest/src/gtest_main.cc:32: recipe-sysroot/usr/include/c++/15.0.1/ciso646:46:4: error: #warning "<ciso646> is deprecated in C++17, use <version> to detect implementation-specific macros" [-Werror=cpp] 46 | # warning "<ciso646> is deprecated in C++17, use <version> to detect implementation-specific macros" | ^~~~~~~ backport a fix for this. * see google/googletest#4701 Signed-off-by: Martin Jansa <martin.jansagmail.com> Signed-off-by: Khem Raj <raj.khemgmail.com>
* some recipes which use googletest fail with: gtest/src/gtest_main.cc:32: recipe-sysroot/usr/include/c++/15.0.1/ciso646:46:4: error: #warning "<ciso646> is deprecated in C++17, use <version> to detect implementation-specific macros" [-Werror=cpp] 46 | # warning "<ciso646> is deprecated in C++17, use <version> to detect implementation-specific macros" | ^~~~~~~ backport a fix for this. * see google/googletest#4701 Signed-off-by: Martin Jansa <martin.jansagmail.com> Signed-off-by: Khem Raj <raj.khemgmail.com>
* some recipes which use googletest fail with: gtest/src/gtest_main.cc:32: recipe-sysroot/usr/include/c++/15.0.1/ciso646:46:4: error: #warning "<ciso646> is deprecated in C++17, use <version> to detect implementation-specific macros" [-Werror=cpp] 46 | # warning "<ciso646> is deprecated in C++17, use <version> to detect implementation-specific macros" | ^~~~~~~ backport a fix for this. * see google/googletest#4701 Signed-off-by: Martin Jansa <martin.jansagmail.com> Signed-off-by: Khem Raj <raj.khemgmail.com>
Describe the issue
On latest fedora:rawhide, both with clang++ (19.1.6) or g++ (15.0.1), in implicit mode or explicit -std=c++17, including gtest.h emits:
workaround: use explicit -std=c++20
Steps to reproduce the problem
docker run --rm -it fedora:rawhide
install gtest 1.15.2 in it
include gtest.h
What version of GoogleTest are you using?
1.15.2
What operating system and version are you using?
What compiler and version are you using?
clang++ (19.1.6) or g++ (15.0.1)
What build system are you using?
all
Additional context
No response
The text was updated successfully, but these errors were encountered: