-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
QNX compilation failure of .WillOnce() #3947
Comments
Same issue here with latest QNX (gcc 8.3.0 based) under Windows with CMake |
QNX isn't officially supported. We would like a patch from the community to fix this issue. |
Same issue here with latest QNX (gcc 8.3.0 based) under Linux with CMake |
Same issue using latest google-test V1.14.0 with QNX 7.1 qcc 8.3.0 under Windows 10 with CMake. |
Hi, does anyone know if a patch fixing that issue is available? |
Debugged into this but couldn't find the issue. In case anybody is interested, boiled down the code to reproduce the issue below. #include <gmock/gmock.h>
#include <gtest/gtest.h>
int main (int argc, char *argv[]) {
auto fn = [](){return 0;};
testing::OnceAction<int()> once(fn);
testing::OnceAction<int()> second(std::move(once));
std::tuple<testing::OnceAction<int()>> t1(fn);
std::tuple<testing::OnceAction<int()>> t2(std::move(t1));
return 0;
} #include <gmock/gmock.h>
#include <gtest/gtest.h>
int main (int argc, char *argv[]){
using k = std::__1::is_constructible<
std::__1::tuple<testing::OnceAction<int()>>,
std::__1::tuple<testing::OnceAction<int()>>
>;
return sizeof(k);
} |
Hi, if it can help, on my side I was able to fix the issue by applying this change from QNX googletest fork : (I'm using googletest v1.15.2) |
works, thanks @dacolj are you sure the |
Describe the bug
During an uplift of our gtest version we got compilation failures for our QNX compiler but not for gcc or clang.
I bisected it to this commit: 0498660 by @jacobsa.
Steps to reproduce the bug
The following works on gcc and clang but not on QNX 7:
Changing
.WillOnce()
to.WillRepeatedly()
makes it compile on all our platforms.Does the bug persist in the most recent commit?
Verified that it fails on: bea621c
What operating system and version are you using?
Ubuntu 18.04.
What compiler and version are you using?
QNX 7.
What build system are you using?
Bazel 5.1.1.
Additional context
BUILD.bazel
Error message:
The text was updated successfully, but these errors were encountered: