Open mnil opened 2 years ago
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. Downgrading to google-test V1.11.0 seems to fix the issue for me.
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);
}
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: https://github.com/google/googletest/commit/0498660ea575bfeb4b3b0879fa6aa6904d1df373 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: bea621c3c39d8a7f71f07bd543c3a58bfa684f92
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: