-
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
GCC-12: Compiler error with C++20 mode on char* + string
.
#4108
Comments
danakj
changed the title
GCC-12:
GCC-12: Compiler error with C++20 mode on Jan 1, 2023
char + string
.
danakj
changed the title
GCC-12: Compiler error with C++20 mode on
GCC-12: Compiler error with C++20 mode on Jan 1, 2023
char + string
.char* + string
.
A small reproduction is here: https://godbolt.org/z/Pe5aE59xG I'm not sure how GCC managed to ship this in 12.1 and then didn't fix it for 12.2. It looks fixed in trunk though. I'll add a workaround similar to your patch. Thanks. |
gaspardpetit
pushed a commit
to eidosmontreal/googletest
that referenced
this issue
Feb 24, 2023
Fixes google#4108 PiperOrigin-RevId: 499556061 Change-Id: I1cb1564f9b77e1825fddc9236965f4a3b661d96a
apazylbe
added a commit
to apazylbe/bigwheels
that referenced
this issue
Jun 23, 2023
When building with PPX_BUILD_XR=0 and Release, warnings are treated as errors, and googletest seems to have an issue with C++20 and gcc12, and the repo contains a workaround in a later version. google/googletest#4108
apazylbe
added a commit
to apazylbe/bigwheels
that referenced
this issue
Jun 23, 2023
When building with PPX_BUILD_XR=0 and Release, warnings are treated as errors. Googletest seems to have an issue with C++20 and gcc12. The repo contains a workaround in a later version. google/googletest#4108
apazylbe
added a commit
to apazylbe/bigwheels
that referenced
this issue
Jun 23, 2023
When building with PPX_BUILD_XR=0 and Release, warnings are treated as errors. Googletest seems to have an issue with C++20 and gcc12. The repo contains a workaround in a later version. google/googletest#4108
Keenuts
pushed a commit
to google/bigwheels
that referenced
this issue
Jun 27, 2023
When building with PPX_BUILD_XR=0 and Release, warnings are treated as errors. Googletest seems to have an issue with C++20 and gcc12. The repo contains a workaround in a later version. google/googletest#4108
kunitoki
pushed a commit
to kunitoki/googletest
that referenced
this issue
Nov 4, 2023
Fixes google#4108 PiperOrigin-RevId: 499556061 Change-Id: I1cb1564f9b77e1825fddc9236965f4a3b661d96a
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the issue
Compile error in gtest-all.cc with GCC-12 and C++20 mode.
Steps to reproduce the problem
There were no errors compiling with GCC-11, but with GCC-12 I get this error:
Clearly 9223372036854775813 is a lot of bytes.
https://github.com/chromium/subspace/actions/runs/3814961661/jobs/6489651472 demonstrates the error.
chromium/subspace@ecded91 fixes the error.
What version of GoogleTest are you using?
googletest 1.11
What operating system and version are you using?
Ubuntu 22.04.1 LTS
What compiler and version are you using?
gcc 12.1.0
Compiling with -std=c++20
What build system are you using?
cmake on github actions
Additional context
No response
The text was updated successfully, but these errors were encountered: