-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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]: Compilation fails with Clang15 #4148
Comments
abhinandanudupa
added a commit
to abhinandanudupa/googletest
that referenced
this issue
Feb 10, 2023
Improves Compatibility with C++17. Resolves: google#4148
abhinandanudupa
added a commit
to abhinandanudupa/googletest
that referenced
this issue
Feb 10, 2023
Improves Compatibility with C++17. Resolves: google#4148 Signed-off-by: Abhinandan Udupa <67597710+abhinandanudupa@users.noreply.github.com>
abhinandanudupa
added a commit
to abhinandanudupa/googletest
that referenced
this issue
Feb 10, 2023
Improve compatibility with C++17. Resolves: google#4148 Signed-off-by: Abhinandan Udupa <67597710+abhinandanudupa@users.noreply.github.com>
gaspardpetit
pushed a commit
to eidosmontreal/googletest
that referenced
this issue
Feb 24, 2023
Keep declarations in c++ < 17 using new macro, GTEST_INTERNAL_NEED_REDUNDANT_CONSTEXPR_DECL. Fixes google#4148. PiperOrigin-RevId: 511510401 Change-Id: I76c3f2fccf07a0978adcbe5f8f0203b9d0c33872
kunitoki
pushed a commit
to kunitoki/googletest
that referenced
this issue
Nov 4, 2023
Keep declarations in c++ < 17 using new macro, GTEST_INTERNAL_NEED_REDUNDANT_CONSTEXPR_DECL. Fixes google#4148. PiperOrigin-RevId: 511510401 Change-Id: I76c3f2fccf07a0978adcbe5f8f0203b9d0c33872
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the issue
Using the clang 15 compiler gives the error:
Redundant declarations have been deprecated in C++17.
Steps to reproduce the problem
Please refer to this issue: WasmEdge/WasmEdge#2224
Relevant CMake config:
1.13
What version of GoogleTest are you using?
Version:
1.11
(we get the same issue with1.13
also)What operating system and version are you using?
Windows 11
What compiler and version are you using?
clang 15.0.7
What build system are you using?
cmake version 3.25.1
Additional context
I have not tried setting
set(CMAKE_CXX_STANDARD 14)
as a temporary fix. Looks like setting this resolves the issue for now.The text was updated successfully, but these errors were encountered: