From c950e612873480cd06b61cae2cc024675d6cacd4 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sat, 14 Sep 2019 19:19:38 +0000 Subject: [PATCH] Work around gcc's inability to compile an incomplete type in googletest, leading to hundreds of lines of fairly unreadable error messages. I don't think we particularly care about the specific source file gcc dies on, and the many layers of macros and sub-types in googletest make it very hard to diagnose whether this is a bug in googletest, gcc, clang or libc++. --- contrib/googletest/googlemock/test/gmock-spec-builders_test.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/googletest/googlemock/test/gmock-spec-builders_test.cc b/contrib/googletest/googlemock/test/gmock-spec-builders_test.cc index 7056c43cc51f..160218051dd5 100644 --- a/contrib/googletest/googlemock/test/gmock-spec-builders_test.cc +++ b/contrib/googletest/googlemock/test/gmock-spec-builders_test.cc @@ -107,7 +107,8 @@ using testing::internal::CaptureStdout; using testing::internal::GetCapturedStdout; #endif -class Incomplete; +class Incomplete { +}; class MockIncomplete { public: